Configuration Reference
The configuration file format is as follows:
1
rpclient:
2
3
# RPC client'address to access gateway.
4
# daemom is not affected by this config option.
5
# only for other cmd cliends'address to access gateway.
6
# usage format:<protocol>://<ip>:<port>
7
# default: http://127.0.0.1:9012
8
apihost: "http://127.0.0.1:9012"
9
# timeout of RPC request
10
# default: 180s
11
timeout: "180s"
12
13
rpcserver:
14
# Listening address for JSON-RPC server
15
# By default, it will be bound to the local loopback address: 127.0.0.1:9012
16
# if need to map outside network you can set [ip]:<port>
17
# which port bound support http/s、websocket(ws)protocols
18
listen: "127.0.0.1:9012"
19
20
p2pnode:
21
# address of node in p2p network to listen services of p2p network.
22
# By default, it will be bound to the local loopback address: 127.0.0.1:9011
23
# if need to map outside network you can set [ip]:<port>
24
listen: "0.0.0.0:9011"
25
# bootstrap Node in p2p network
26
# By default, boostrap list can be obtained by hardcode in xfsgo according to net protocol.
27
# bootstrap: []
28
29
protocol:
30
# protocol version
31
version: 1
32
# unique id of network protocols
33
networkid: 1
34
35
miner:
36
# address to receive rewards by creating block for xfs blockchain
37
# ,which will affect the HASH RATE cause an address represents a node joined in to mine at least
38
# by default,a private key will be created by a random number in your local wallet when the xfs blockchain starts for the first time.
39
# you can check your wallet list after the daemon is executed.
40
coinbase: ""
41
# number of thread executed
42
# that will be limited by your mining machine configuration
43
numworkers: 10
44
45
storage:
46
# path of data storage
47
# default: $HOME/.xfsdb
48
# you can customize this configuration option according to your actural machain env.
49
datadir: ""
50
# path of block storage
51
# default: ${dbdir}/chain
52
chaindir: ""
53
# path of world state storage
54
# default: ${dbdir}/state
55
statedir: ""
56
# path of keystore storage
57
# default: ${dbdir}/keys
58
keysdir: ""
59
# path to store extra data
60
# default: ${dbdir}/extra
61
extradir: ""
62
nodesdir: ""
63
# logger level
64
logger:
65
level: "INFO"
Copied!
Copy link