-
Notifications
You must be signed in to change notification settings - Fork 153
/
template.conf
139 lines (104 loc) · 3.98 KB
/
template.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
network {
# Official seed node info.
# You can also use other node as your seed node.
seed: ["/ip4/[seed ip]/tcp/[seed port]/ipfs/[seed token]"]
# Local node socket.
listen: ["0.0.0.0:8680"]
# [Optional] Node private key, used for authority between nodes.
# If the private key is empty, a random private key will be generated.
private_key: "conf/network.key"
}
chain {
# Chain identity.
# Nodes with different chain_id cannot communicate with each other.
chain_id: 101
# Data folder path.
datadir: "data.db"
# Keydir path where you can put in your keystore json file of wallets.
keydir: "keydir"
# Here is your genesis conf.
genesis: "conf/genesis.conf"
# Signature algorithm for signing blocks & txs.
signature_ciphers: ["ECC_SECP256K1"]
# Enable mining service in consensus.
start_mine: false
# If start_mine == true, the address of miner should be provided.
miner: "[your miner address]"
# If start_mine == true, the coinbase should be provided.
# If you minted a block, the reward will be sent to the coinbase.
coinbase: "[your coinbase address]"
# If start_mine == true, you can choose to enable a remote sign server.
# If you enable a remote sign server, node will request the remote server to sign new minted block.
enable_remote_sign_server: false
# If start_miner == true && enable_remote_sign_server == false, miner's passphrase should be provided.
# Miner's passphrase will be used to sign new minted block locally.
passphrase: "[your miner's passphrase]"
# If start_miner == true && enable_remote_sign_server == true, the remote sign server should be privided.
# Node will request the remote sign server to sign new minted block.
remote_sign_server: "ip:port"
# If start_mine == true, gas price should be provided.
# Gas price means the lowest gas price of transactions that can be accepted by local node.
# Scope: (0, 10^12], default 10^6
gas_price: "1000000"
# If start_mine == true, gas limit should be provided.
# Gas limit means the biggest gas limit of transactions that can be accepted by local node.
# Scope: (0, 5*10^10], default 5*10^10
gas_limit: "50000000000"
}
rpc {
# Rpc service socket
rpc_listen: ["0.0.0.0:8684"]
# Http service socket
http_listen: ["0.0.0.0:8685"]
# Modules opened
# Api: https://github.com/nebulasio/wiki/blob/master/rpc.md
# Admin: https://github.com/nebulasio/wiki/blob/master/rpc_admin.md
# Attention: Admin includes a lot of dangerous api, please be careful to open it.
http_module: ["api","admin"]
# Rpc concurrent requests limit. default is 128.
connection_limits: 128
# Http concurrent requests limit. default is 128.
http_limits: 128
# Http CORS whitelist. default is empty.
http_cors: ["*"]
}
app {
# Log level, support debug/info/warning/error/fatal
log_level: "info"
# Log folder path
log_file: "logs"
# Enable crash report uploaded
enable_crash_report: false
# If enable_crash_report == true, crash_report_url should be provides.
# Crash report will be uploaded to the url.
crash_report_url: "https://crashreport.nebulas.io"
}
nbre {
# NBRE binary and library location
root_dir: "nbre"
# NBRE log folder path
log_dir: "mainnet/nbre/logs"
# NBRE db path
data_dir: "mainnet/nbre/nbre.db"
# NBRE binary location
nbre_path: "nbre/bin/nbre"
# Auth table admin address
admin_address: "n1S9RrRPC46T9byYBS868YuZgzqGuiPCY1m"
# The height where DIP take effects
start_height: 2307000
# NEB and NBRE ipc socket
ipc_listen: "127.0.0.1"
ipc_port: 8688
}
stats {
# Enable metrics statics
enable_metrics: false
# If enable_metrics == true, infludb should be provided.
# All metrics information will be written into the influxdb.
influxdb: {
host: "[your influxdb host]"
db: "[your influxdb database]"
user: "[your influxdb user]"
password: "[your influxdb password]"
}
}