You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/trin/src/cli.rs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,7 @@ pub struct TrinConfig {
136
136
long = "storage.total",
137
137
alias = "mb",
138
138
help = "Maximum storage capacity (in megabytes), shared between enabled subnetworks",
139
-
long_help = "Maximum storage capacity (in megabytes), shared between enabled subnetworks.\nCan't be used in combination with 'storage.{subnetwork}' flags (if storage of one subnetwork is specified explicitly, all have to be). If none of the flags is used, then `storage.total` is used with default value.\nThe actual storage can be higher than specified, due to overhead.",
139
+
long_help = "Maximum storage capacity (in megabytes), shared between enabled subnetworks.\nCan't be used in combination with 'storage.{subnetwork}' flags (if storage of one subnetwork is specified explicitly, all have to be). If none of the flags is used, then `storage.total` is used with default value.\nThe actual storage can be higher than specified, due to overhead.\nThe flag --mb is an alias to storage.total.",
Copy file name to clipboardExpand all lines: book/src/users/cli.md
+77-18Lines changed: 77 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,62 +6,121 @@ Below is the current list of all command line flags.
6
6
7
7
Note that these flags may change over time, so run `trin --help` to get the most up-to-date information for your version.
8
8
9
+
<!--
10
+
Generate the following text with: trin --help to get the long version, instead of trin -h
11
+
-->
9
12
```text
10
-
Usage: trin [OPTIONS] [COMMAND]
13
+
Run an eth portal client
11
14
12
-
Commands:
13
-
create-dashboard
14
-
help Print this message or the help of the given subcommand(s)
15
+
Usage: trin [OPTIONS]
15
16
16
17
Options:
17
18
--web3-transport <WEB3_TRANSPORT>
18
-
select transport protocol to serve json-rpc endpoint [default: ipc]
19
+
select transport protocol to serve json-rpc endpoint
20
+
21
+
[default: ipc]
22
+
19
23
--web3-http-address <WEB3_HTTP_ADDRESS>
20
-
address to accept json-rpc http connections [default: http://127.0.0.1:8545/]
24
+
address to accept json-rpc http connections
25
+
26
+
[default: http://127.0.0.1:8545/]
27
+
21
28
--web3-ipc-path <WEB3_IPC_PATH>
22
-
path to json-rpc endpoint over IPC [default: /tmp/trin-jsonrpc.ipc]
29
+
path to json-rpc endpoint over IPC
30
+
31
+
[default: /tmp/trin-jsonrpc.ipc]
32
+
23
33
--discovery-port <DISCOVERY_PORT>
24
-
The UDP port to listen on. [default: 9009]
34
+
The UDP port to listen on.
35
+
36
+
[default: 9009]
37
+
25
38
--bootnodes <BOOTNODES>
26
-
One or more comma-delimited base64-encoded ENR's or multiaddr strings of peers to initially add to the local routing table [default: default]
39
+
One or more comma-delimited base64-encoded ENR's or multiaddr strings of peers to initially add to the local routing table
40
+
41
+
[default: default]
42
+
27
43
--external-address <EXTERNAL_ADDR>
28
44
(Only use this if you are behind a NAT) The address which will be advertised to peers (in an ENR). Changing it does not change which port or address trin binds to. Port number is required, ex: 127.0.0.1:9001
45
+
29
46
--no-stun
30
47
Do not use STUN to determine an external IP. Leaves ENR entry for IP blank. Some users report better connections over VPN.
48
+
31
49
--no-upnp
32
50
Do not use UPnP to determine an external port.
51
+
33
52
--unsafe-private-key <PRIVATE_KEY>
34
53
Hex encoded 32 byte private key (with 0x prefix) (considered unsafe as it's stored in terminal history - keyfile support coming soon)
54
+
35
55
--trusted-block-root <TRUSTED_BLOCK_ROOT>
36
56
Hex encoded block root from a trusted checkpoint
57
+
37
58
--network <NETWORK>
38
-
Choose mainnet or angelfood [default: mainnet]
59
+
Choose mainnet or angelfood
60
+
61
+
[default: mainnet]
62
+
39
63
--portal-subnetworks <PORTAL_SUBNETWORKS>
40
-
Comma-separated list of which portal subnetworks to activate [default: history]
64
+
Comma-separated list of which portal subnetworks to activate
65
+
66
+
[default: beacon,history]
67
+
41
68
--storage.total <storage.total>
42
-
Maximum storage capacity (in megabytes), shared between enabled subnetworks [default: 1000]
69
+
Maximum storage capacity (in megabytes), shared between enabled subnetworks.
70
+
Can't be used in combination with 'storage.{subnetwork}' flags (if storage of one subnetwork is specified explicitly, all have to be). If none of the flags is used, then `storage.total` is used with default value.
71
+
The actual storage can be higher than specified, due to overhead.
72
+
The flag --mb is an alias to storage.total.
73
+
74
+
[default: 1000]
75
+
43
76
--storage.beacon <storage.beacon>
44
-
Maximum storage capacity (in megabytes) used by beacon subnetwork
77
+
Maximum storage capacity (in megabytes) used by beacon subnetwork.
78
+
Can't be used in combination with 'storage.total' flag.
79
+
The actual storage can be higher than specified, due to overhead.
80
+
45
81
--storage.history <storage.history>
46
-
Maximum storage capacity (in megabytes) used by history subnetwork
82
+
Maximum storage capacity (in megabytes) used by history subnetwork.
83
+
Can't be used in combination with 'storage.total' flag.
84
+
The actual storage can be higher than specified, due to overhead.
85
+
47
86
--storage.state <storage.state>
48
-
Maximum storage capacity (in megabytes) used by state subnetwork
87
+
Maximum storage capacity (in megabytes) used by state subnetwork.
88
+
Can't be used in combination with 'storage.total' flag.
89
+
The actual storage can be higher than specified, due to overhead.
Enable prometheus metrics reporting (provide local IP/Port from which your Prometheus server is configured to fetch metrics)
93
+
51
94
--data-dir <DATA_DIR>
52
95
The directory for storing application data. If used together with --ephemeral, new child directory will be created. Can be alternatively set via TRIN_DATA_PATH env variable.
96
+
53
97
-e, --ephemeral
54
98
Use new data directory, located in OS temporary directory. If used together with --data-dir, new directory will be created there instead.
99
+
55
100
--disable-poke
56
101
Disables the poke mechanism, which propagates content at the end of a successful content query. Disabling is useful for network analysis purposes.
102
+
57
103
--ws
58
104
Used to enable WebSocket rpc.
105
+
59
106
--ws-port <WS_PORT>
60
-
The WebSocket port to listen on. [default: 8546]
107
+
The WebSocket port to listen on.
108
+
109
+
[default: 8546]
110
+
61
111
--utp-transfer-limit <UTP_TRANSFER_LIMIT>
62
-
The limit of max background uTP transfers for any given channel (inbound or outbound) for each subnetwork [default: 50]
112
+
The limit of max background uTP transfers for any given channel (inbound or outbound) for each subnetwork
113
+
114
+
[default: 50]
115
+
116
+
--max-radius <MAX_RADIUS>
117
+
The maximum radius our node will use. The default is 5% of the network size. The max is 100%
0 commit comments