-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsubstrate.help
338 lines (256 loc) · 15.6 KB
/
substrate.help
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
IPSE 2.0.0-189c4b2-x86_64-linux-gnu
IPSE TEAM
Generic Ipse node implementation in Rust.
USAGE:
IPSE [FLAGS] [OPTIONS]
IPSE <SUBCOMMAND>
FLAGS:
--alice
Shortcut for `--name Alice --validator` with session keys for `Alice` added to keystore
--bob
Shortcut for `--name Bob --validator` with session keys for `Bob` added to keystore
--charlie
Shortcut for `--name Charlie --validator` with session keys for `Charlie` added to keystore
--dave
Shortcut for `--name Dave --validator` with session keys for `Dave` added to keystore
--dev
Specify the development chain
--discover-local
Enable peer discovery on local networks.
By default this option is true for `--dev` and false otherwise.
--eve
Shortcut for `--name Eve --validator` with session keys for `Eve` added to keystore
--ferdie
Shortcut for `--name Ferdie --validator` with session keys for `Ferdie` added to keystore
--force-authoring
Enable authoring even when offline
-h, --help
Prints help information
--light
Experimental: Run in light client mode
--no-grandpa
Disable GRANDPA voter when running in validator mode, otherwise disable the GRANDPA observer
--no-mdns
Disable mDNS discovery.
By default, the network will use mDNS to discover other nodes on the local network. This disables it.
Automatically implied when using --dev.
--no-private-ipv4
Forbid connecting to private IPv4 addresses (as specified in
[RFC1918](https://tools.ietf.org/html/rfc1918)), unless the address was passed with `--reserved-nodes` or
`--bootnodes`
--no-prometheus // 不打开监控服务 9615端口 (不让别人监控自己)
Do not expose a Prometheus metric endpoint.
Prometheus metric endpoint is enabled by default.
--no-telemetry // 不让监控里看到自己 (同上)
Disable connecting to the Substrate telemetry server.
Telemetry is on by default on global chains.
--no-yamux-flow-control
Disable the yamux flow control. This option will be removed in the future once there is enough confidence
that this feature is properly working
--one
Shortcut for `--name One --validator` with session keys for `One` added to keystore
--password-interactive // 使用密码(保护keystore安全) 执行后会提示输入密码
Use interactive shell for entering the password used by the keystore
--prometheus-external
Listen to all Prometheus data source interfaces.
Default is local.
--reserved-only // 只连接指定的的nodes (必须先声明连接的节点)
Whether to only allow connections to/from reserved nodes.
If you are a validator your node might still connect to other validator nodes regardless of whether they are
defined as reserved nodes.
--rpc-external
Listen to all RPC interfaces.
Default is local. Note: not all RPC methods are safe to be exposed publicly. Use an RPC proxy server to
filter out dangerous methods. More details: https://github.com/paritytech/substrate/wiki/Public-RPC. Use
`--unsafe-rpc-external` to suppress the warning if you understand the risks.
--tmp
Run a temporary node.
A temporary directory will be created to store the configuration and will be deleted at the end of the
process.
Note: the directory is random per process execution. This directory is used as base path which includes:
database, node key and keystore.
--two
Shortcut for `--name Two --validator` with session keys for `Two` added to keystore
--unsafe-pruning
Force start with unsafe pruning settings.
When running as a validator it is highly recommended to disable state pruning (i.e. 'archive') which is the
default. The node will refuse to start as a validator if pruning is enabled unless this option is set.
--unsafe-rpc-external
Listen to all RPC interfaces.
Same as `--rpc-external`.
--unsafe-ws-external
Listen to all Websocket interfaces.
Same as `--ws-external` but doesn't warn you about it.
--validator // 以验证人的模式启动(全节点, 不一定是验证人不可)
Enable validator mode.
The node will be started with the authority role and actively participate in any consensus task that it can
(e.g. depending on availability of local keys).
-V, --version
Prints version information
--ws-external
Listen to all Websocket interfaces.
Default is local. Note: not all RPC methods are safe to be exposed publicly. Use an RPC proxy server to
filter out dangerous methods. More details: https://github.com/paritytech/substrate/wiki/Public-RPC. Use
`--unsafe-ws-external` to suppress the warning if you understand the risks.
OPTIONS:
-d, --base-path <PATH>
Specify custom base path
--bootnodes <ADDR>...
Specify a list of bootnodes
--chain <CHAIN_SPEC>
Specify the chain specification (one of dev, local, or staging)
--database <DB>
Select database backend to use
--db-cache <MiB>
Limit the memory the database cache can use
--offchain-worker <ENABLED>
Should execute offchain workers on every block.
By default it's only enabled for nodes that are authoring new blocks. [default: WhenValidating] [possible
values: Always, Never, WhenValidating]
--execution <STRATEGY>
The execution strategy that should be used by all execution contexts [possible values: Native, Wasm, Both,
NativeElseWasm]
--execution-block-construction <STRATEGY>
The means of execution used when calling into the runtime while constructing blocks [possible values:
Native, Wasm, Both, NativeElseWasm]
--execution-import-block <STRATEGY>
The means of execution used when calling into the runtime for general block import (including locally
authored blocks) [possible values: Native, Wasm, Both, NativeElseWasm]
--execution-offchain-worker <STRATEGY>
The means of execution used when calling into the runtime while using an off-chain worker [possible values:
Native, Wasm, Both, NativeElseWasm]
--execution-other <STRATEGY>
The means of execution used when calling into the runtime while not syncing, importing or constructing
blocks [possible values: Native, Wasm, Both, NativeElseWasm]
--execution-syncing <STRATEGY>
The means of execution used when calling into the runtime for importing blocks as part of an initial sync
[possible values: Native, Wasm, Both, NativeElseWasm]
--in-peers <COUNT>
Specify the maximum number of incoming connections we're accepting [default: 25]
--enable-offchain-indexing <ENABLE_OFFCHAIN_INDEXING>
Enable Offchain Indexing API, which allows block import to write to Offchain DB.
Enables a runtime to write directly to a offchain workers DB during block import.
--ipc-path <PATH>
Specify IPC RPC server path
--keystore-path <PATH>
Specify custom keystore path
--listen-addr <LISTEN_ADDR>...
Listen on this multiaddress
-l, --log <LOG_PATTERN>...
Sets a custom logging filter. Syntax is <target>=<level>, e.g. -lsync=debug.
Log levels (least to most verbose) are error, warn, info, debug, and trace. By default, all targets log
`info`. The global log level can be set with -l<level>.
--max-parallel-downloads <COUNT>
Maximum number of peers from which to ask for the same blocks in parallel.
This allows downloading announced blocks from multiple peers. Decrease to save traffic and risk increased
latency. [default: 5]
--max-runtime-instances <max-runtime-instances>
The size of the instances cache for each runtime.
The default value is 8 and the values higher than 256 are ignored.
--name <NAME>
The human-readable name for this node.
The node name will be reported to the telemetry server, if enabled.
--node-key <KEY>
The secret key to use for libp2p networking.
The value is a string that is parsed according to the choice of `--node-key-type` as follows:
`ed25519`: The value is parsed as a hex-encoded Ed25519 32 byte secret key, i.e. 64 hex characters.
The value of this option takes precedence over `--node-key-file`.
WARNING: Secrets provided as command-line arguments are easily exposed. Use of this option should be limited
to development and testing. To use an externally managed secret key, use `--node-key-file` instead.
--node-key-file <FILE>
The file from which to read the node's secret key to use for libp2p networking.
The contents of the file are parsed according to the choice of `--node-key-type` as follows:
`ed25519`: The file must contain an unencoded 32 byte or hex encoded Ed25519 secret key.
If the file does not exist, it is created with a newly generated secret key of the chosen type.
--node-key-type <TYPE>
The type of secret key to use for libp2p networking.
The secret key of the node is obtained as follows:
* If the `--node-key` option is given, the value is parsed as a secret key according to the type. See the
documentation for `--node-key`.
* If the `--node-key-file` option is given, the secret key is read from the specified file. See the
documentation for `--node-key-file`.
* Otherwise, the secret key is read from a file with a predetermined, type-specific name from the chain-
specific network config directory inside the base directory specified by `--base-dir`. If this file
does not exist, it is created with a newly generated secret key of the chosen type.
The node's secret key determines the corresponding public key and hence the node's peer ID in the context of
libp2p. [default: Ed25519] [possible values: Ed25519]
--out-peers <COUNT>
Specify the number of outgoing connections we're trying to maintain [default: 25]
--password <password>
Password used by the keystore
--password-filename <PATH>
File that contains the password used by the keystore
--pool-kbytes <COUNT>
Maximum number of kilobytes of all transactions stored in the pool [default: 20480]
--pool-limit <COUNT>
Maximum number of transactions in the transaction pool [default: 8192]
--port <PORT>
Specify p2p protocol TCP port
--prometheus-port <PORT>
Specify Prometheus data source server TCP Port
--pruning <PRUNING_MODE>
Specify the state pruning mode, a number of blocks to keep or 'archive'.
Default is to keep all block states if the node is running as a validator (i.e. 'archive'), otherwise state
is only kept for the last 256 blocks.
--public-addr <PUBLIC_ADDR>...
The public address that other nodes will use to connect to it. This can be used if there's a proxy in front
of this node
--reserved-nodes <ADDR>...
Specify a list of reserved node addresses
--rpc-cors <ORIGINS>
Specify browser Origins allowed to access the HTTP & WS RPC servers.
A comma-separated list of origins (protocol://domain or special `null` value). Value of `all` will disable
origin validation. Default is to allow localhost and https://polkadot.js.org origins. When running in --dev
mode the default is to allow all origins.
--rpc-methods <METHOD SET>
RPC methods to expose.
- `Unsafe`: Exposes every RPC method.
- `Safe`: Exposes only a safe subset of RPC methods, denying unsafe RPC methods.
- `Auto`: Acts as `Safe` if RPC is served externally, e.g. when `--{rpc,ws}-external` is passed,
otherwise acts as `Unsafe`. [default: Auto] [possible values: Auto, Safe, Unsafe]
--rpc-port <PORT>
Specify HTTP RPC server TCP port
--sentry <sentry>...
Enable sentry mode.
The node will be started with the authority role and participate in consensus tasks as an "observer", it
will never actively participate regardless of whether it could (e.g. keys are available locally). This mode
is useful as a secure proxy for validators (which would run detached from the network), since we want this
node to participate in the full consensus protocols in order to have all needed consensus data available to
relay to private nodes.
--sentry-nodes <ADDR>...
Specify a list of sentry node public addresses.
Can't be used with --public-addr as the sentry node would take precedence over the public address specified
there.
--state-cache-size <Bytes>
Specify the state cache size [default: 67108864]
--telemetry-url <URL VERBOSITY>...
The URL of the telemetry server to connect to.
This flag can be passed multiple times as a means to specify multiple telemetry endpoints. Verbosity levels
range from 0-9, with 0 denoting the least verbosity. Expected format is 'URL VERBOSITY', e.g. `--telemetry-
url 'wss://foo/bar 0'`.
--tracing-receiver <RECEIVER>
Receiver to process tracing messages [default: Log] [possible values: Log, Telemetry]
--tracing-targets <TARGETS>
Comma separated list of targets for tracing
--wasm-execution <METHOD> // wasm的运行方式 (Compiled比较耗内存 但是执行效率相对高)
Method for executing Wasm runtime code [default: Interpreted] [possible values: Interpreted, Compiled]
--ws-max-connections <COUNT>
Maximum number of WS RPC server connections
--ws-port <PORT>
Specify WebSockets RPC server TCP port
SUBCOMMANDS:
benchmark Benchmark runtime pallets.
build-spec Build a chain specification
build-sync-spec Build a chain specification with a light client sync state
check-block Validate blocks
export-blocks Export blocks
export-state Export the state of a given block into a chain spec
help Prints this message or the help of the given subcommand(s)
import-blocks Import blocks
inspect Decode given block or extrinsic using current native runtime.
key Key management cli utilities
purge-chain Remove the whole chain
revert Revert the chain to a previous state
sign Sign a message, with a given (secret) key
vanity Generate a seed that provides a vanity address
verify Verify a signature for a message, provided on STDIN, with a given (public or secret) key