-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathassetchain.toml
More file actions
194 lines (172 loc) · 4.25 KB
/
assetchain.toml
File metadata and controls
194 lines (172 loc) · 4.25 KB
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
Title = "assetchain"
FixTime = false
ChainID = 898
CoinPrecision = 10000
CoinSymbol = "AS"
[log]
# 日志级别,支持debug(dbug)/info/warn/error(eror)/crit
loglevel = "debug"
logConsoleLevel = "info"
# 日志文件名,可带目录,所有生成的日志文件都放到此目录下
logFile = "logs/chain.log"
# 单个日志文件的最大值(单位:兆)
maxFileSize = 300
# 最多保存的历史日志文件个数
maxBackups = 100
# 最多保存的历史日志消息(单位:天)
maxAge = 28
# 日志文件名是否使用本地事件(否则使用UTC时间)
localTime = true
# 历史日志文件是否压缩(压缩格式为gz)
compress = true
# 是否打印调用源文件和行号
callerFile = false
# 是否打印调用方法
callerFunction = false
[blockchain]
dbPath = "datadir" # TODO.dir.1
dbCache = 64
batchsync = false
isRecordBlockSequence = true
enableTxQuickIndex = true
# 升级storedb是否重新执行localdb,assetchain主链升级不需要开启,平行链升级需要开启
enableReExecLocal = false
# 使能精简localdb
enableReduceLocaldb = false
# 是否禁止分片功能,默认开启分片功能
disableShard = true
# 使能从P2pStore中获取数据
enableFetchP2pstore = true
enablePushSubscribe = true
singleMode=false
[p2p]
types = ["dht"]
dbPath = "datadir/addrbook" # TODO.dir.2
dbCache = 4
grpcLogFile = "grpc33.log"
#waitPid 等待seed导入
waitPid = false
[p2p.sub.gossip]
port = 13801 # TODO.port.p2p.rpc
seeds = []
isSeed = false
innerSeedEnable = false
useGithub = false
innerBounds = 300
[p2p.sub.dht]
#可以自定义设置连接节点
seeds = [] # TODO.seed
#bootstraps是内置不能修改的引导节点
bootstraps=[] # TODO.seed
port = 13801 #TODO.port.p2p.rpc
maxConnectNum = 300
# 是否配置为全节点模式,全节点保存所有分片数据,种子节点应配置为true
isFullNode = true
verLimit = "1.0.0"
channel = 10005
[p2p.sub.dht.pubsub]
gossipSubDlo = 7
gossipSubD = 10
gossipSubDhi = 20
gossipSubHeartbeatInterval = 900
gossipSubHistoryGossip = 2
gossipSubHistoryLength = 7
[rpc]
jrpcBindAddr = "localhost:8801" # TODO.port.rpc
grpcBindAddr = "localhost:8802" # TODO.port.rpc
whitelist = ["127.0.0.1"]
jrpcFuncBlacklist = [
"SendToAddress",
"Lock",
"UnLock",
"SetPasswd",
"NewAccount",
"GetAccounts",
"MergeBalance",
"ImportPrivKey",
"WalletTransactionList",
"DumpPrivkey",
"SaveSeed",
"GetSeed",
]
grpcFuncBlacklist = [
"SendToAddress",
"Lock",
"UnLock",
"SetPasswd",
"NewAccount",
"GetAccounts",
"MergeBalance",
"ImportPrivKey",
"WalletTransactionList",
"DumpPrivkey",
"SaveSeed",
"GetSeed",
]
enableTLS = false
certFile = "cert.pem"
keyFile = "key.pem"
[rpc.sub.eth]
enable = true
httpAddr = "localhost:8546" # TODO.port.rpc
httpApi = ["eth", "web3", "personal", "admin", "net"]
# websocket 绑定地址
wsAddr = "localhost:8547" # TODO.port.rpc
wsApi = ["eth", "web3", "personal", "admin", "net"]
#兼容交易返回eth 哈希
enableRlpTxHash = true
#启动快速估算gas
disableQuickGas = false
[mempool]
maxTxNumPerAccount = 10000
[store]
dbPath = "datadir/mavltree" # TODO.dir.3
dbCache = 128
[store.sub.mavl]
enableMavlPrefix = true
enableMVCC = false
enableMavlPrune = true
pruneHeight = 10000
enableMemTree = true
enableMemVal = true
# 缓存close ticket数目,该缓存越大同步速度越快,最大设置到1500000,默认200000
tkCloseCacheLen = 200000
[store.sub.kvmvccmavl]
enableMVCCIter = true
enableMavlPrefix = true
enableMVCC = false
enableMavlPrune = true
pruneMavlHeight = 10000
enableMVCCPrune = false
pruneMVCCHeight = 10000
enableMemTree = true
enableMemVal = true
# 缓存close ticket数目,该缓存越大同步速度越快,最大设置到1500000,默认200000
tkCloseCacheLen = 200000
[wallet]
dbPath = "wallet" # TODO.dir.4
coinType = "AS"
dbCache = 16
[wallet.sub.ticket]
minerdisable = false
minerwhitelist = ["*"]
[health]
listenAddr = "localhost:8809" # TODO.port.rpc
[exec]
enableStat = false
enableMVCC = false
[exec.sub.token]
saveTokenTxList = false
[metrics]
#是否使能发送metrics数据的发送
enableMetrics = false
#数据保存模式
dataEmitMode = "influxdb"
[metrics.sub.influxdb]
#以纳秒为单位的发送间隔
duration = 1000000000
url = "http://influxdb:8086"
database = "chainmetrics"
username = ""
password = ""
namespace = ""