forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-test.conf
More file actions
389 lines (324 loc) · 10.4 KB
/
config-test.conf
File metadata and controls
389 lines (324 loc) · 10.4 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
net {
# type is deprecated and has no effect.
# type = mainnet
}
storage {
# Directory for storing persistent data
db.engine = "LEVELDB"
db.directory = "database",
index.directory = "index",
# You can custom these 14 databases' configs:
# account, account-index, asset-issue, block, block-index,
# block_KDB, peers, properties, recent-block, trans,
# utxo, votes, witness, witness_schedule.
# Otherwise, db configs will remain defualt and data will be stored in
# the path of "output-directory" or which is set by "-d" ("--output-directory").
# Attention: name is a required field that must be set !!!
properties = [
// {
// name = "account",
// path = "storage_directory_test",
// createIfMissing = true,
// paranoidChecks = true,
// verifyChecksums = true,
// compressionType = 1, // compressed with snappy
// blockSize = 4096, // 4 KB = 4 * 1024 B
// writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
// cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
// maxOpenFiles = 100
// },
// {
// name = "account-index",
// path = "storage_directory_test",
// createIfMissing = true,
// paranoidChecks = true,
// verifyChecksums = true,
// compressionType = 1, // compressed with snappy
// blockSize = 4096, // 4 KB = 4 * 1024 B
// writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
// cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
// maxOpenFiles = 100
// },
// { # only for unit test
// name = "test_name",
// path = "test_path",
// createIfMissing = false,
// paranoidChecks = false,
// verifyChecksums = false,
// compressionType = 1,
// blockSize = 2,
// writeBufferSize = 3,
// cacheSize = 4,
// maxOpenFiles = 5
// },
]
needToUpdateAsset = false
snapshot.maxFlushCount = 200
# the estimated number of block transactions (default 1000, min 100, max 10000).
# so the total number of cached transactions is 65536 * txCache.estimatedTransactions
txCache.estimatedTransactions = 50
# if true, transaction cache initialization will be faster. default false
txCache.initOptimization = true
# data root setting, for check data, currently, only reward-vi is used.
merkleRoot = {
reward-vi = e0ebe2f3243391ed674dff816a07f589a3279420d6d88bc823b6a9d5778337ce
}
}
node.discovery = {
enable = true
persist = true
external.ip = "46.168.1.1"
}
node {
trustNode = "127.0.0.1:50051"
listen.port = 18888
connection.timeout = 2
active = [
# Sample entries:
# { url = "enode://<hex nodeID>@hostname.com:30303" }
# {
# ip = hostname.com
# port = 30303
# nodeId = e437a4836b77ad9d9ffe73ee782ef2614e6d8370fcf62191a6e488276e23717147073a7ce0b444d485fff5a0c34c4577251a7a990cf80d8542e21b95aa8c5e6c
# }
]
inactiveThreshold = 600 //seconds
p2p {
version = 43 # 43: testnet; 101: debug
}
http {
fullNodeEnable = false
solidityEnable = false
PBFTEnable = false
}
jsonrpc {
httpFullNodeEnable = false
httpSolidityEnable = false
httpPBFTEnable = false
# maxBlockRange = 5000
# maxSubTopics = 1000
# maxBlockFilterNum = 30000
}
# use your ipv6 address for node discovery and tcp connection, default false
enableIpv6 = false
# if your node's highest block num is below than all your pees', try to acquire new connection, default false
effectiveCheckEnable = false
dns {
# dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty
treeUrls = [
#"tree://APFGGTFOBVE2ZNAB3CSMNNX6RRK3ODIRLP2AA5U4YFAA6MSYZUYTQ@nodes1.example.org",
]
# enable or disable dns publish, default false
publish = false
# dns domain to publish nodes, required if publish is true
dnsDomain = "nodes1.example.org"
# dns private key used to publish, required if publish is true, hex string of length 64
dnsPrivate = "1234567890123456789012345678901234567890123456789012345678901234"
# known dns urls to publish if publish is true, url format tree://{pubkey}@{domain}, default empty
knownUrls = [
#"tree://APFGGTFOBVE2ZNAB3CSMNNX6RRK3ODIRLP2AA5U4YFAA6MSYZUYTQ@nodes2.example.org",
]
staticNodes = [
# static nodes to published on dns
# Sample entries:
# "ip:port",
# "ip:port"
]
# merge several nodes into a leaf of tree, should be 1~5
maxMergeSize = 5
# only nodes change percent is bigger then the threshold, we update data on dns
changeThreshold = 0.1
# dns server to publish, required if publish is true, only aws or aliyun is support
serverType = "aws"
# access key id of aws or aliyun api, required if publish is true, string
accessKeyId = "your-key-id"
# access key secret of aws or aliyun api, required if publish is true, string
accessKeySecret = "your-key-secret"
# if publish is true and serverType is aliyun, it's endpoint of aws dns server, string
aliyunDnsEndpoint = "alidns.aliyuncs.com"
# if publish is true and serverType is aws, it's region of aws api, such as "eu-south-1", string
awsRegion = "us-east-1"
# if publish is true and server-type is aws, it's host zone id of aws's domain, string
awsHostZoneId = "your-host-zone-id"
}
rpc {
enable = false
solidityEnable = false
PBFTEnable = false
port = 50051
PBFTPort = 50072
# Number of gRPC thread, default availableProcessors / 2
# thread = 16
# The maximum number of concurrent calls permitted for each incoming connection
# maxConcurrentCallsPerConnection =
# The HTTP/2 flow control window, default 1MB
# flowControlWindow =
# Connection being idle for longer than which will be gracefully terminated
maxConnectionIdleInMillis = 60000
# Connection lasting longer than which will be gracefully terminated
# maxConnectionAgeInMillis =
# The maximum message size allowed to be received on the server, default 4MB
# maxMessageSize =
# The maximum size of header list allowed to be received, default 8192
# maxHeaderListSize =
# The switch of the reflection service, effective for all gRPC services
reflectionService = true
maxRstStream = 5
secondsPerWindow = 10
}
}
sync {
node.count = 30
}
seed.node = {
# List of the seed nodes
# Seed nodes are stable full nodes
# example:
# ip.list = [
# "ip:port",
# "ip:port"
# ]
ip.list = [
"47.254.16.55:18888",
"47.254.18.49:18888",
"18.188.111.53:18888",
"54.219.41.56:18888",
"35.169.113.187:18888",
"34.214.241.188:18888",
"47.254.146.147:18888",
"47.254.144.25:18888",
"47.91.246.252:18888",
"47.91.216.69:18888",
"39.106.220.120:18888"
]
}
genesis.block = {
# Reserve balance
assets = [
# {
# accountName = "tron"
# accountType = "AssetIssue" # Normal/AssetIssue/Contract
# address = "TFveVqgQKAdFa12DNnXTw7GHCDQK7fUVen"
# balance = "10"
# }
{
accountName = "Devaccount"
accountType = "AssetIssue"
address = "TPwJS5eC5BPGyMGtYTHNhPTB89sUWjDSSu"
balance = "10000000000000000"
},
{
accountName = "Zion"
accountType = "AssetIssue"
address = "TSRNrjmrAbDdrsoqZsv7FZUtAo13fwoCzv"
balance = "15000000000000000"
},
{
accountName = "Sun"
accountType = "AssetIssue"
address = "TDQE4yb3E7dvDjouvu8u7GgSnMZbxAEumV"
balance = "10000000000000000"
},
{
accountName = "Blackhole"
accountType = "AssetIssue"
address = "THmtHi1Rzq4gSKYGEKv1DPkV7au6xU1AUB"
balance = "-9223372036854775808"
}
]
witnesses = [
{
address: TDmHUBuko2qhcKBCGGafu928hMRj1tX2RW
url = "http://Mercury.org",
voteCount = 105
},
{
address: TMgPX8uBr8XbBboxQgMK3zNS4SgjUa3eiP
url = "http://Venus.org",
voteCount = 104
},
{
address: THeN2mPrrkr5U9Nzfb7xwgAwRqcFWcL7pR
url = "http://Earth.org",
voteCount = 103
},
{
address: TNj21CppEn6PzHHtdLHoNZRpLJnxogNnAX
url = "http://Mars.org",
voteCount = 102
},
{
address: TS48wDnTskrLU49kmZKRVfkHXd2NQ3dZP4
url = "http://Jupiter.org",
voteCount = 101
},
{
address: TAw7uHQUJw8FqRzuYqmEDQkFCyCGE4JcsW
url = "http://Saturn.org",
voteCount = 100
},
{
address: TKeAx8bYkB25RsyNTQ9gUa75CuEVfFbF6N
url = "http://Uranus.org",
voteCount = 99
},
{
address: TXX9e8tvYxg5MMbcoYAvqVT2wiXyacjs65
url = "http://Neptune.org",
voteCount = 98
},
{
address: TYpqwW7bfamDfDqXA9EMPhAfmArKMicxp9
url = "http://Pluto.org",
voteCount = 97
},
{
address: TBstX5L37A1WZBEJPM9nNDnDFa2kcTVSmc
url = "http://Altair.org",
voteCount = 96
},
{
address: TNboetpFgv9SqMoHvaVt626NLXETnbdW1K
url = "http://AlphaLyrae.org",
voteCount = 95
}
]
timestamp = "0" #2017-8-26 12:00:00
parentHash = "0x0000000000000000000000000000000000000000000000000000000000000000"
}
// Optional.The default is empty.
// It is used when the witness account has set the witnessPermission.
// When it is not empty, the localWitnessAccountAddress represents the address of the witness account,
// and the localwitness is configured with the private key of the witnessPermissionAddress in the witness account.
// When it is empty,the localwitness is configured with the private key of the witness account.
//localWitnessAccountAddress =
localwitness = [
]
block = {
needSyncCheck = true # first node : false, other : true
}
vm = {
supportConstant = true
minTimeRatio = 0.0
maxTimeRatio = 5.0
# In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged
# longRunningTime = 10
}
committee = {
allowCreationOfContracts = 1 //mainnet:0 (reset by committee),test:1
}
rate.limiter.global.qps = 1000
rate.limiter.global.ip.qps = 1000
rate.limiter.global.api.qps = 100
rate.limiter.http = [
{
component = "GetNowBlockServlet",
strategy = "GlobalPreemptibleAdapter",
paramString = "permit=1"
}
]
node.dynamicConfig.enable = true
event.subscribe = {
enable = false
}
node.dynamicConfig.checkInterval = 0