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
@@ -30,99 +30,158 @@ In order to test CodeChain alone, one may want to change ``change_type`` into So
30
30
31
31
CLI Options for CodeChain client
32
32
================================
33
-
::
34
-
35
-
--config-path = [PATH]
33
+
``--config-path=[PATH]``
36
34
Specify the certain config file path that you want to use to configure CodeChain to your needs.
37
35
38
-
--port = [PORT]
36
+
``--port=[PORT]``
39
37
Listen for connections on PORT. (default: 3485)
40
38
41
-
--bootstrap-addresses = [BOOTSTRAP_ADDRESSES]
39
+
``--bootstrap-addresses=[BOOTSTRAP_ADDRESSES]``
42
40
Bootstrap addresses to connect.
43
41
44
-
--no-network
42
+
``--no-network``
45
43
Do not open network socket.
46
44
47
-
--min-peers = [NUM]
45
+
``--min-peers=[NUM]``
48
46
Sets the minimum number of connections the user would like. (default: 10)
49
47
50
-
--max-peers = [NUM]
48
+
``--max-peers=[NUM]``
51
49
Sets the maximum number of connections the user would like. (default: 30)
52
50
53
-
--instance-id = [ID]
51
+
``--instance-id=[ID]``
54
52
Specify instance id for logging. Used when running multiple instances of CodeChain.
55
53
56
-
--quiet
54
+
``--quiet``
57
55
Do not show any synchronization information in the console.
58
56
59
-
--chain = [CHAIN]
57
+
``--chain=[CHAIN]``
60
58
Sets the blockchain type out of solo, solo_authority, tendermint or a path to chain spec file. (default: tendermint)
61
59
62
-
--db-path = [PATH]
60
+
``--db-path=[PATH]``
63
61
Specify the database directory path.
64
62
65
-
--no-sync
63
+
``--no-sync``
66
64
Do not run block sync extension.
67
65
68
-
--no-parcel-relay
66
+
``--no-parcel-relay``
69
67
Do not relay parcels.
70
68
71
-
--jsonrpc-port = [PORT]
69
+
``--jsonrpc-port=[PORT]``
72
70
Listen for rpc connections on PORT. (default: 8080)
73
71
74
-
--no-jsonrpc
72
+
``--no-jsonrpc``
75
73
Do not run jsonrpc.
76
74
77
-
--secret-key = [KEY]
75
+
``--secret-key=[KEY]``
78
76
Secret key used by node.
79
77
80
-
--author = [ADDRESS]
78
+
``--author=[ADDRESS]``
81
79
Specify the block's author (aka "coinbase") address for sending block rewards from
82
80
sealed blocks.
83
81
84
-
--engine-signer = [ADDRESS]
82
+
``--engine-signer=[ADDRESS]``
85
83
Specify the address which should be used to sign consensus messages and
86
84
issue blocks.
87
85
88
-
--no-discovery
86
+
``--no-discovery``
89
87
Do not use discovery. No automated peer finding.
90
88
91
-
--discovery = "kademlia" | "unstructured"
92
-
Decides which p2p discovery extension to use. Options are kademlia and unstructured.
89
+
``--discovery="kademlia" | "unstructured"``
90
+
Decides which p2p discovery extension to use. Options are `kademlia <https://github.com/CodeChain-io/codechain/wiki/Kademlia-Extension>`_ and unstructured.
91
+
In a testing environment, an unstructured p2p network is desirable because it is
92
+
more than sufficient when there are a few users.
93
93
(default: unstructured)
94
94
95
-
--discovery-bucket-size = [NUM]
95
+
``--discovery-bucket-size=[NUM]``
96
96
Bucket size for discovery. Choose how many addresses to exchange at a time
97
97
during discovery.
98
98
99
-
--discovery-refresh = [ms]
99
+
``--discovery-refresh=[ms]``
100
100
Refresh timeout of discovery (ms). It may conflict with:`` --no-discovery``.
101
101
102
-
Subcommands
102
+
Subcommands
103
+
-----------
104
+
105
+
CodeChain has a subcommand called ``account``. It has subcommands of its own, which are the following:
106
+
107
+
``create``
108
+
create account
109
+
110
+
``--passphrase <PASSWORD>``
111
+
account passphrase
112
+
113
+
``import``
114
+
import private key
115
+
116
+
``--passphrase <PASSWORD>``
117
+
set account passphrase
118
+
119
+
``--raw-key <RAW-KEY>``
120
+
specify key to import
121
+
122
+
``list``
123
+
list managed accounts
124
+
125
+
For example, if you want to create an account with a password of '1234', run the following:
126
+
::
103
127
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:
CodeChain currently offers five different ``<level>``. They are error, warn, info, debug, and trace.
120
139
121
-
list
122
-
list managed accounts
140
+
For example, the log level will be set to debug, if you run the following:
123
141
124
-
lock
125
-
lock account
142
+
``$ RUST_LOG="debug" codechain``
143
+
144
+
* The **error** level represents an event where something can be dangerous, but can still run. In the case in which it cannot run anymore, it must crash ASAP instead of logging.
145
+
146
+
* The **warn** level represents an event which can be potentially dangerous.
147
+
148
+
* The **info** level represents an event which is not dangerous, but can be useful information for users.
149
+
150
+
* The **debug** level represents an event that is useful for developers, but not for users.
151
+
152
+
* The **trace** level is used for tracing.
153
+
154
+
Log Targets
155
+
-----------
156
+
157
+
Log levels can be set differently for each log targets. For example, you can run the following to set ``tx``'s log level as ``trace`` and ``parcel``'s
0 commit comments