Node Config
The node supports two configuration options:
    using the configuration file
    using start arguments
The configuration file is located at $DATADIR as config.ini. The config file will be created automatically when the node starts, if it was not there before. In the file you can find explanations for each parameter.
Use ./echo_node --help to show all available arguments.
1
$ ./echo_node --help
2
Echo Node:
3
-h [ --help ] Print this help message and exit.
4
-d [ --data-dir ] arg Directory containing databases,
5
configuration file, etc.
6
--sidechain Enable sidechain plugin
7
--testnet Use testnet options preset
8
--devnet Use devnet options preset
9
-v [ --version ] Print version information
10
--configure-keys Encrypt private keys in interactive
11
mode and save it to keys.file
12
--config-seeds-only If true connect ONLY to specific in
13
config/command line seed nodes
14
15
--create-genesis-json Create a genesis.json at corresponding
16
datadir. Depending on which options
17
preset is selected (mainnet or testnet)
18
it will output different Genesis State.
19
--example-genesis-json arg Path to create an example Genesis State
20
at. If a well-formed JSON file exists
21
at the path, it will be parsed and any
22
missing fields in a Genesis State will
23
be added, and any unknown fields will
24
be removed. If no file or an invalid
25
file is found, it will be replaced with
26
an example Genesis State.
27
--replay-blockchain Rebuild object graph by replaying all
28
blocks
29
--resync-blockchain Delete all blocks and re-sync with
30
network from scratch
31
--force-validate Force validation of all transactions
32
--genesis-timestamp arg Replace timestamp from genesis.json
33
with current time plus this many
34
seconds (experts only!)
35
36
--p2p-endpoint [=arg(=127.0.0.1:13375)]
37
Endpoint for P2P node to listen on
38
-s [ --seed-node ] arg P2P nodes to connect to on startup (may
39
specify multiple times)
40
--seed-nodes arg JSON array of P2P nodes to connect to
41
on startup
42
-c [ --checkpoint ] arg Pairs of [BLOCK_NUM,BLOCK_ID] that
43
should be enforced as checkpoints.
44
--rpc-endpoint [=arg(=127.0.0.1:8090)]
45
Endpoint for websocket RPC to listen on
46
--rpccorsdomain arg Domains from which to accept cross
47
origin requests
48
--genesis-json arg File to read Genesis State from
49
--api-access arg JSON file specifying API permissions
50
--plugins arg (=history,echorand) Comma-separated list of plugins which
51
will be activated in addition to
52
default.Example: --plugins="sidechain,r
53
egistration,shapshot"
54
--sidechain-btc-testnet Using testnet for Bitcoin network
55
--p2p-compress Compress communication channels for
56
this P2P node
57
--p2p-encrypt Encrypt communication channels for this
58
P2P node
59
60
61
Options for plugin echorand:
62
--start-echorand Enable Echorand, even if the chain is
63
stale.
64
--account-info arg Pairs of [AccountID, WIF private key]
65
(may specify multiple times)
66
67
Options for plugin sidechain:
68
--sidechain-eth-committeeman arg Sidechain: Pair of [account_id,
69
eth_private_key] that should correspond
70
to committee account (may be specified
71
multiple times)
72
--eth-rpc-ip [=arg(=127.0.0.1)] Sidechain: RPC address of Ethereum node
73
--eth-rpc-port [=arg(=18332)] Sidechain: RPC port of Ethereum node
74
--sidechain-eth-disable Sidechain: Disable Ethereum service
75
--sidechain-btc-committeeman arg Sidechain: Tuple of [account_id, WIF
76
BTC private key] (may specify multiple
77
times)
78
--btc-rpc-ip [=arg(=127.0.0.1)] Sidechain: RPC address of Bitcoin node
79
--btc-rpc-port [=arg(=18332)] Sidechain: RPC port of Bitcoin node
80
--btc-rpc-user arg Sidechain: Bitcoin RPC user
81
--btc-rpc-password arg Sidechain: Bitcoin RPC password
82
--sidechain-btc-disable Sidechain: Disable Bitcoin service
83
84
Options for plugin registration:
85
--registrar-account arg Registration: ID of registrar account
86
on this node (should be imported as
87
account-info)
88
--registration-difficulty arg Registration: complexity of POW task to
89
register account. Default is 20
90
91
Options for plugin history:
92
--track-account arg Account history: Account ID to track
93
history for (may specify multiple
94
times)
95
--max-ops-per-account arg Account history: Maximum number of
96
operations per account will be kept in
97
memory
98
--track-contract arg Contract history: Contract ID to track
99
history for (may specify multiple
100
times)
101
--max-ops-per-contract arg Contract history: Maximum number of
102
operations per contract will be kept in
103
memory
104
--partial-operations arg History: Keep only those operations in
105
memory that are related to history
106
tracking
107
108
Options for plugin ethrpc:
109
--ethrpc-endpoint arg Endpoint for EthRPC to listen on
110
--ethrpc-registration-task-lifetime arg (=20)
111
Lifetime of registration tasks(in
112
blocks)
113
114
Options for plugin snapshot:
115
--snapshot-at-block arg Snapshots: Block number after which to
116
do a snapshot
117
--snapshot-at-time arg Snapshots: Block time (ISO format)
118
after which to do a snapshot
119
--snapshot-to arg Snapshots: Pathname of JSON file where
120
to store the snapshot
Copied!
Last modified 10mo ago
Copy link