-
Notifications
You must be signed in to change notification settings - Fork 371
/
test_net_config.conf
704 lines (602 loc) · 20 KB
/
test_net_config.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
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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
net {
type = mainnet
# type = testnet
}
storage {
# Directory for storing persistent data
db.engine = "LEVELDB",
db.sync = false,
db.directory = "database",
index.directory = "index",
transHistory.switch = "on",
# 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 default and data will be stored in
# the path of "output-directory" or which is set by "-d" ("--output-directory").
# setting can impove leveldb performance .... start
# node: if this will increase process fds,you may be check your ulimit if 'too many open files' error occurs
# see https://github.com/tronprotocol/tips/blob/master/tip-343.md for detail
# if you find block sync has lower performance,you can try this settings
#default = {
# maxOpenFiles = 100
#}
#defaultM = {
# maxOpenFiles = 500
#}
#defaultL = {
# maxOpenFiles = 1000
#}
# setting can impove leveldb performance .... end
# 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
// },
]
needToUpdateAsset = true
//dbsettings is needed when using rocksdb as the storage implement (db.engine="ROCKSDB").
//we'd strongly recommend that do not modify it unless you know every item's meaning clearly.
dbSettings = {
levelNumber = 7
//compactThreads = 32
blocksize = 64 // n * KB
maxBytesForLevelBase = 256 // n * MB
maxBytesForLevelMultiplier = 10
level0FileNumCompactionTrigger = 4
targetFileSizeBase = 256 // n * MB
targetFileSizeMultiplier = 1
}
//backup settings when using rocks db as the storage implement (db.engine="ROCKSDB").
//if you want to use the backup plugin, please confirm set the db.engine="ROCKSDB" above.
backup = {
enable = false // indicate whether enable the backup plugin
propPath = "prop.properties" // record which bak directory is valid
bak1path = "bak1/database" // you must set two backup directories to prevent application halt unexpected(e.g. kill -9).
bak2path = "bak2/database"
frequency = 10000 // indicate backup db once every 10000 blocks processed.
}
balance.history.lookup = false
# checkpoint.version = 2
# checkpoint.sync = true
# 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 = 1000
# data root setting, for check data, currently, only reward-vi is used.
merkleRoot = {
reward-vi = b474b61f93824cd70106f8f5283fa740d61b83a7d57a3c12401d627f1fae0a77 // nile-net, Sha256Hash, hexString
}
}
node.discovery = {
enable = true
persist = true
}
# custom stop condition
#node.shutdown = {
# BlockTime = "54 59 08 * * ?" # if block header time in persistent db matched.
# BlockHeight = 33350800 # if block header height in persistent db matched.
# BlockCount = 12 # block sync count after node start.
#}
node.backup {
# udp listen port, each member should have the same configuration
port = 10001
# my priority, each member should use different priority
priority = 8
# time interval to send keepAlive message, each member should have the same configuration
keepAliveInterval = 3000
# peer's ip list, can't contain mine
members = [
# "ip",
# "ip"
]
}
crypto {
engine = "eckey"
}
# prometheus metrics start
# node.metrics = {
# prometheus{
# enable=true
# port="9527"
# }
# }
# prometheus metrics end
node {
# trust node for solidity node
# trustNode = "ip:port"
trustNode = "127.0.0.1:50051"
# expose extension api to public or not
walletExtensionApi = true
listen.port = 18888
connection.timeout = 2
fetchBlock.timeout = 200
tcpNettyWorkThreadNum = 0
udpNettyWorkThreadNum = 1
# Number of validate sign thread, default availableProcessors / 2
# validateSignThreadNum = 16
maxConnections = 30
minConnections = 8
minActiveConnections = 3
maxConnectionsWithSameIp = 2
maxHttpConnectNumber = 50
minParticipationRate = 15
isOpenFullTcpDisconnect = false
p2p {
version = 201910292
}
active = [
# Active establish connection in any case
# Sample entries:
# "ip:port",
# "ip:port"
]
passive = [
# Passive accept connection in any case
# Sample entries:
# "ip:port",
# "ip:port"
]
fastForward = [
]
http {
fullNodeEnable = true
fullNodePort = 8090
solidityEnable = true
solidityPort = 8091
}
rpc {
port = 50051
#solidityPort = 50061
# 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 =
# Transactions can only be broadcast if the number of effective connections is reached.
minEffectiveConnection = 1
}
# number of solidity thread in the FullNode.
# If accessing solidity rpc and http interface timeout, could increase the number of threads,
# The default value is the number of cpu cores of the machine.
#solidity.threads = 8
# Limits the maximum percentage (default 75%) of producing block interval
# to provide sufficient time to perform other operations e.g. broadcast block
# blockProducedTimeOut = 75
# Limits the maximum number (default 700) of transaction from network layer
# netMaxTrxPerSecond = 700
# Whether to enable the node detection function, default false
# nodeDetectEnable = false
# 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
# Dynamic loading configuration function, disabled by default
# dynamicConfig = {
# enable = false
# Configuration file change check interval, default is 600 seconds
# checkInterval = 600
# }
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 = "b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291"
# 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"
}
# open the history query APIs(http&GRPC) when node is a lite fullNode,
# like {getBlockByNum, getBlockByID, getTransactionByID...}.
# default: false.
# note: above APIs may return null even if blocks and transactions actually are on the blockchain
# when opening on a lite fullnode. only open it if the consequences being clearly known
# openHistoryQueryWhenLiteFN = false
jsonrpc {
# Note: If you turn on jsonrpc and run it for a while and then turn it off, you will not
# be able to get the data from eth_getLogs for that period of time.
# httpFullNodeEnable = true
# httpFullNodePort = 8545
# httpSolidityEnable = true
# httpSolidityPort = 8555
# httpPBFTEnable = true
# httpPBFTPort = 8565
}
# Disabled api list, it will work for http, rpc and pbft, both fullnode and soliditynode,
# but not jsonrpc.
# Sample: The setting is case insensitive, GetNowBlock2 is equal to getnowblock2
#
# disabledApi = [
# "getaccount",
# "getnowblock2"
# ]
}
## rate limiter config
rate.limiter = {
# Every api could be set a specific rate limit strategy. Three strategy are supported:GlobalPreemptibleAdapter、IPQPSRateLimiterAdapte、QpsRateLimiterAdapter
# GlobalPreemptibleAdapter: permit is the number of preemptible resource, every client must apply one resourse
# before do the request and release the resource after got the reponse automaticlly. permit should be a Integer.
# QpsRateLimiterAdapter: qps is the average request count in one second supported by the server, it could be a Double or a Integer.
# IPQPSRateLimiterAdapter: similar to the QpsRateLimiterAdapter, qps could be a Double or a Integer.
# If do not set, the "default strategy" is set.The "default startegy" is based on QpsRateLimiterAdapter, the qps is set as 10000.
#
# Sample entries:
#
http = [
# {
# component = "GetNowBlockServlet",
# strategy = "GlobalPreemptibleAdapter",
# paramString = "permit=1"
# },
# {
# component = "GetAccountServlet",
# strategy = "IPQPSRateLimiterAdapter",
# paramString = "qps=1"
# },
# {
# component = "ListWitnessesServlet",
# strategy = "QpsRateLimiterAdapter",
# paramString = "qps=1"
# }
],
rpc = [
# {
# component = "protocol.Wallet/GetBlockByLatestNum2",
# strategy = "GlobalPreemptibleAdapter",
# paramString = "permit=1"
# },
# {
# component = "protocol.Wallet/GetAccount",
# strategy = "IPQPSRateLimiterAdapter",
# paramString = "qps=1"
# },
# {
# component = "protocol.Wallet/ListWitnesses",
# strategy = "QpsRateLimiterAdapter",
# paramString = "qps=1"
# },
]
# global qps, default 50000
# global.qps = 50000
# IP-based global qps, default 10000
# global.ip.qps = 10000
}
seed.node = {
# List of the seed nodes
# Seed nodes are stable full nodes
# example:
# ip.list = [
# "ip:port",
# "ip:port"
# ]
ip.list = [
"47.90.214.183:18888",
"47.252.17.40:18888",
"47.253.34.98:18888",
"47.252.3.238:18888",
"47.90.243.177:18888",
"44.236.192.97:18888",
"44.236.125.107:18888",
"44.232.119.174:18888",
"35.167.210.93:18888",
"34.208.18.175:18888"
]
}
genesis.block = {
# Reserve balance
assets = [
{
accountName = "Zion"
accountType = "AssetIssue"
address = "TMWXhuxiT1KczhBxCseCDDsrhmpYGUcoA9"
balance = "99000000000000000"
},
{
accountName = "Sun"
accountType = "AssetIssue"
address = "TN21Wx2yoNYiZ7znuQonmZMJnH5Vdfxu78"
balance = "99000000000000000"
},
{
accountName = "Blackhole"
accountType = "AssetIssue"
address = "TDPJULRzVtzVjnBmZvfaTcTNQ2tsVi6XxQ"
balance = "-9223372036854775808"
}
]
witnesses = [
{
address: TD23EqH3ixYMYh8CMXKdHyQWjePi3KQvxV,
url = "http://GR1.com",
voteCount = 100000026
},
{
address: TCm4Lz1uP3tQm3jzpwFTG6o5UvSTA2XEHc,
url = "http://GR2.com",
voteCount = 100000025
},
{
address: TTgDUgREiPBeY3iudD5e2eEibE4v4CE8C9,
url = "http://GR3.com",
voteCount = 100000024
},
{
address: TFVDe7kMEmb8EuUxxp42kocQY1fFY727WS,
url = "http://GR4.com",
voteCount = 100000023
},
{
address: TY4NSjctzTchHkhaCskVc5zQtnX9s1uxAX,
url = "http://GR5.com",
voteCount = 100000022
},
{
address: TWSMPrm6aizvsJmPnjMB7x3UExJfRhyQhd,
url = "http://GR6.com",
voteCount = 100000021
},
{
address: TKwLkSaCvqqpAB44qaHGTohCTCFoYw7ecy,
url = "http://GR7.com",
voteCount = 100000020
},
{
address: TDsYmm1St9r4UZebDGWBcTMtfYTw9YX5h4,
url = "http://GR8.com",
voteCount = 100000019
},
{
address: TFEQbWAPxhbUr1P14y9UJBUZo3LgtdqTS7,
url = "http://GR9.com",
voteCount = 100000018
},
{
address: TCynAi8tb7UWP7uhLv6fe971KLm2KT8tcs,
url = "http://GR10.com",
voteCount = 100000017
},
{
address: TC2YsLp4rzrt3AbeN3EryoSywrBjEUVCq3,
url = "http://GR11.com",
voteCount = 100000016
},
{
address: THxMKH1uaL5FpURujkQR7u2sNZ2n5PSsiH,
url = "http://GR12.com",
voteCount = 100000015
},
{
address: TWbzgoHimDcXWy19ts1An8bxA4JKjcYHeG,
url = "http://GR13.com",
voteCount = 100000014
},
{
address: TW2LmXnVCEaxuVtQN8gZR1ixT5PNm4QLft,
url = "http://GR14.com",
voteCount = 100000013
},
{
address: TVuqk4rYYVHVA6j6sSEnaLexhhoQhN8nyZ,
url = "http://GR15.com",
voteCount = 100000012
},
{
address: TVMZu5ptZPhhkZ3Kaagkq35FmyuKNvUKJV,
url = "http://GR16.com",
voteCount = 100000011
},
{
address: TFDHT8PqUrL2Bd8DeysSiHHBAEMidZgkhx,
url = "http://GR17.com",
voteCount = 100000010
},
{
address: TVqz5Bj3M1uEenaSsw2NnXvTWChPj6K3hb,
url = "http://GR18.com",
voteCount = 100000009
},
{
address: TSt8YNpARJkhdMdEV4C7ajH1tFHpZWzF1T,
url = "http://GR19.com",
voteCount = 100000008
},
{
address: TTxWDjEb3Be1Ax8BCvK48cnaorZofLq2C9,
url = "http://GR20.com",
voteCount = 100000007
},
{
address: TU5T838YtyZtEQKpnXEdRz3d8hJn6WHhjw,
url = "http://GR21.com",
voteCount = 100000006
},
{
address: TRuSs1MpL3o2hzhU8r6HLC7WtDyVE9hsF6,
url = "http://GR22.com",
voteCount = 100000005
},
{
address: TYMCoCZyAjWkWdUfEHg1oZQYbLKev282ou,
url = "http://GR23.com",
voteCount = 100000004
},
{
address: TQvAyGATpLZymHbpeaRozJCKqSeRWVNhCJ,
url = "http://GR24.com",
voteCount = 100000003
},
{
address: TYDd9nskbhJmLLNoe4yV2Z1SYtGjNa8wyg,
url = "http://GR25.com",
voteCount = 100000002
},
{
address: TS5991Geh2qeHtw46rskpJyn6hFNbuZGGc,
url = "http://GR26.com",
voteCount = 100000001
},
{
address: TKnn5MBnmXXeKdu9dxKVfKk4n1YdCeSRGr,
url = "http://GR27.com",
voteCount = 100000000
}
]
timestamp = "0" #2017-8-26 12:00:00
parentHash = "0xe58f33f9baf9305dc6f82b9f1934ea8f0ade2defb951258d50167028c780351f"
}
// 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 = [
]
#localwitnesskeystore = [
# "localwitnesskeystore.json"
#]
block = {
needSyncCheck = false
maintenanceTimeInterval = 21600000
proposalExpireTime = 259200000 // 3 day: 259200000(ms)
}
# Transaction reference block, default is "solid", configure to "head" may incur TaPos error
# trx.reference.block = "solid" // head;solid;
# This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000.
# trx.expiration.timeInMilliseconds = 60000
vm = {
supportConstant =true
maxEnergyLimitForConstant = 100000000
minTimeRatio = 0.0
maxTimeRatio = 5.0
saveInternalTx = true
# Indicates whether the node stores featured internal transactions, such as freeze, vote and so on
# saveFeaturedInternalTx = false
# In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged
# longRunningTime = 10
# Indicates whether the node support estimate energy API.
# estimateEnergy = false
# Indicates the max retry time for executing transaction in estimating energy.
# estimateEnergyMaxRetry = 3
}
committee = {
allowCreationOfContracts = 0 //mainnet:0 (reset by committee),test:1
allowAdaptiveEnergy = 0 //mainnet:0 (reset by committee),test:1
}
event.subscribe = {
native = {
useNativeQueue = true // if true, use native message queue, else use event plugin.
bindport = 5555 // bind port
sendqueuelength = 1000 //max length of send queue
}
path = "" // absolute path of plugin
server = "" // target server address to receive event triggers
dbconfig = "" // dbname|username|password
contractParse = true,
topics = [
{
triggerName = "block" // block trigger, the value can't be modified
enable = false
topic = "block" // plugin topic, the value could be modified
},
{
triggerName = "transaction"
enable = false
topic = "transaction"
},
{
triggerName = "contractevent"
enable = false
topic = "contractevent"
},
{
triggerName = "contractlog"
enable = false
topic = "contractlog"
},
{
triggerName = "solidity" // solidity block event trigger, the value can't be modified
enable = true // the default value is true
topic = "solidity"
},
{
triggerName = "solidityevent"
enable = false
topic = "solidityevent"
},
{
triggerName = "soliditylog"
enable = false
topic = "soliditylog"
}
]
filter = {
fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range
contractAddress = [
"" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address.
]
contractTopic = [
"" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
]
}
}