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: docs/configuration.rst
+46-59Lines changed: 46 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ CodeChain can be configured with either CLI options or a config file. When it co
5
5
6
6
CLI options can be listed by running the command ``$codechain --help``. By using the CLI options, or custom config files, the user can overwrite config.dev.toml's configurations.
7
7
8
-
9
8
Config File
10
9
===========
11
10
The default preset ``config.dev.toml`` file can be located in ``codechain/config/presets/config.dev.toml``.
@@ -33,34 +32,34 @@ CLI Options for CodeChain client
33
32
================================
34
33
::
35
34
36
-
--config-path
35
+
--config-path = [PATH]
37
36
Specify the certain config file path that you want to use to configure CodeChain to your needs.
38
37
39
-
--port
38
+
--port = [PORT]
40
39
Listen for connections on PORT. (default: 3485)
41
40
42
-
--bootstrap-addresses
41
+
--bootstrap-addresses = [BOOTSTRAP_ADDRESSES]
43
42
Bootstrap addresses to connect.
44
43
45
44
--no-network
46
45
Do not open network socket.
47
46
48
-
--min-peers
47
+
--min-peers = [NUM]
49
48
Sets the minimum number of connections the user would like. (default: 10)
50
49
51
-
--max-peers
50
+
--max-peers = [NUM]
52
51
Sets the maximum number of connections the user would like. (default: 30)
53
52
54
-
--instance-id
55
-
Specify instance id for logging.
53
+
--instance-id = [ID]
54
+
Specify instance id for logging. Used when running multiple instances of CodeChain.
56
55
57
56
--quiet
58
57
Do not show any synchronization information in the console.
59
58
60
-
--chain
59
+
--chain = [CHAIN]
61
60
Sets the blockchain type out of solo, solo_authority, tendermint or a path to chain spec file. (default: tendermint)
62
61
63
-
--db-path
62
+
--db-path = [PATH]
64
63
Specify the database directory path.
65
64
66
65
--no-sync
@@ -69,73 +68,61 @@ CLI Options for CodeChain client
69
68
--no-parcel-relay
70
69
Do not relay parcels.
71
70
72
-
--jsonrpc-port
71
+
--jsonrpc-port = [PORT]
73
72
Listen for rpc connections on PORT. (default: 8080)
74
73
75
74
--no-jsonrpc
76
75
Do not run jsonrpc.
77
76
78
-
--secret-key
77
+
--secret-key = [KEY]
79
78
Secret key used by node.
80
79
81
-
--author
82
-
Specify the block author (aka "coinbase") address for sending block rewards from
80
+
--author = [ADDRESS]
81
+
Specify the block's author (aka "coinbase") address for sending block rewards from
83
82
sealed blocks.
84
83
85
-
--engine-signer
84
+
--engine-signer = [ADDRESS]
86
85
Specify the address which should be used to sign consensus messages and
87
86
issue blocks.
88
87
89
88
--no-discovery
90
-
Do not use discovery.
91
-
92
-
--discovery
93
-
p2p discovery extension. Options are kademlia and unstructured. (default: unstructured)
89
+
Do not use discovery. No automated peer finding.
94
90
95
-
--kademlia-alpha
96
-
Degree of parallelism in Kademlia.
91
+
--discovery = "kademlia" | "unstructured"
92
+
Decides which p2p discovery extension to use. Options are kademlia and unstructured.
93
+
(default: unstructured)
97
94
98
-
--discovery-bucket-size
99
-
Bucket size for discovery.
95
+
--discovery-bucket-size = [NUM]
96
+
Bucket size for discovery. Choose how many addresses to exchange at a time
97
+
during discovery.
100
98
101
-
--discovery-refresh
102
-
Refresh timeout of discovery (ms). (Conflicts with: --no-discovery)
99
+
--discovery-refresh = [ms]
100
+
Refresh timeout of discovery (ms). It may conflict with:`` --no-discovery``.
103
101
104
102
Subcommands
105
103
106
-
CodeChain has a subcommand called ``account``. ``amount``is the account managing commands of CodeChain, and also has subcommands of its own, which are the following:
104
+
CodeChain has a subcommand called ``account``. ``amount``is the account managing commands
105
+
of CodeChain, and also has subcommands of its own, which are the following:
0 commit comments