Skip to content

Commit a1381cc

Browse files
committed
feat(config): sync config with tron-deployment
1. add missed config 2. update seed ip list
1 parent 1e35f79 commit a1381cc

File tree

1 file changed

+113
-34
lines changed

1 file changed

+113
-34
lines changed

framework/src/main/resources/config.conf

Lines changed: 113 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ storage {
101101
# data root setting, for check data, currently, only reward-vi is used.
102102

103103
# merkleRoot = {
104-
# reward-vi = 9debcb9924055500aaae98cdee10501c5c39d4daa75800a996f4bdda73dbccd8 // main-net, Sha256Hash, hexString
104+
# reward-vi = 9debcb9924055500aaae98cdee10501c5c39d4daa75800a996f4bdda73dbccd8 // main-net, Sha256Hash, hexString
105105
# }
106106

107107
}
@@ -119,13 +119,13 @@ node.discovery = {
119119
#}
120120

121121
node.backup {
122+
# udp listen port, each member should have the same configuration
123+
port = 10001
124+
122125
# my priority, each member should use different priority
123126
priority = 8
124127

125-
# udp listen port, each member should have the save configuration
126-
port = 10001
127-
128-
# time interval to send keepAlive message, each member should have the save configuration
128+
# time interval to send keepAlive message, each member should have the same configuration
129129
keepAliveInterval = 3000
130130

131131
# peer's ip list, can't contain mine
@@ -166,12 +166,14 @@ node {
166166

167167
udpNettyWorkThreadNum = 1
168168

169+
# Number of validate sign thread, default availableProcessors
170+
# validateSignThreadNum = 16
171+
169172
maxConnections = 30
173+
170174
minConnections = 8
171-
minActiveConnections = 3
172175

173-
# Number of validate sign thread, default availableProcessors / 2
174-
# validateSignThreadNum = 16
176+
minActiveConnections = 3
175177

176178
maxConnectionsWithSameIp = 2
177179

@@ -214,26 +216,14 @@ node {
214216
PBFTPort = 8092
215217
}
216218

217-
# use your ipv6 address for node discovery and tcp connection, default false
218-
enableIpv6 = false
219-
220-
# if your node's highest block num is below than all your pees', try to acquire new connection. default false
221-
effectiveCheckEnable = false
222-
223-
dns {
224-
# dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty
225-
treeUrls = [
226-
#"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net",
227-
]
228-
}
229-
230219
rpc {
231220
enable = true
232221
port = 50051
233222
solidityEnable = true
234223
solidityPort = 50061
235224
PBFTEnable = true
236225
PBFTPort = 50071
226+
237227
# Number of gRPC thread, default availableProcessors / 2
238228
# thread = 16
239229

@@ -274,6 +264,74 @@ node {
274264
# Limits the maximum number (default 700) of transaction from network layer
275265
# netMaxTrxPerSecond = 700
276266

267+
# Whether to enable the node detection function, default false
268+
# nodeDetectEnable = false
269+
270+
# use your ipv6 address for node discovery and tcp connection, default false
271+
# enableIpv6 = false
272+
273+
# if your node's highest block num is below than all your pees', try to acquire new connection. default false
274+
# effectiveCheckEnable = false
275+
276+
# Dynamic loading configuration function, disabled by default
277+
# dynamicConfig = {
278+
# enable = false
279+
# Configuration file change check interval, default is 600 seconds
280+
# checkInterval = 600
281+
# }
282+
283+
dns {
284+
# dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty
285+
treeUrls = [
286+
#"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net",
287+
]
288+
289+
# enable or disable dns publish, default false
290+
# publish = false
291+
292+
# dns domain to publish nodes, required if publish is true
293+
# dnsDomain = "nodes1.example.org"
294+
295+
# dns private key used to publish, required if publish is true, hex string of length 64
296+
# dnsPrivate = "b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291"
297+
298+
# known dns urls to publish if publish is true, url format tree://{pubkey}@{domain}, default empty
299+
# knownUrls = [
300+
#"tree://APFGGTFOBVE2ZNAB3CSMNNX6RRK3ODIRLP2AA5U4YFAA6MSYZUYTQ@nodes2.example.org",
301+
# ]
302+
303+
# staticNodes = [
304+
# static nodes to published on dns
305+
# Sample entries:
306+
# "ip:port",
307+
# "ip:port"
308+
# ]
309+
310+
# merge several nodes into a leaf of tree, should be 1~5
311+
# maxMergeSize = 5
312+
313+
# only nodes change percent is bigger then the threshold, we update data on dns
314+
# changeThreshold = 0.1
315+
316+
# dns server to publish, required if publish is true, only aws or aliyun is support
317+
# serverType = "aws"
318+
319+
# access key id of aws or aliyun api, required if publish is true, string
320+
# accessKeyId = "your-key-id"
321+
322+
# access key secret of aws or aliyun api, required if publish is true, string
323+
# accessKeySecret = "your-key-secret"
324+
325+
# if publish is true and serverType is aliyun, it's endpoint of aws dns server, string
326+
# aliyunDnsEndpoint = "alidns.aliyuncs.com"
327+
328+
# if publish is true and serverType is aws, it's region of aws api, such as "eu-south-1", string
329+
# awsRegion = "us-east-1"
330+
331+
# if publish is true and server-type is aws, it's host zone id of aws's domain, string
332+
# awsHostZoneId = "your-host-zone-id"
333+
}
334+
277335
# open the history query APIs(http&GRPC) when node is a lite fullNode,
278336
# like {getBlockByNum, getBlockByID, getTransactionByID...}.
279337
# default: false.
@@ -294,11 +352,11 @@ node {
294352

295353
# The maximum blocks range to retrieve logs for eth_getLogs, default value is 5000,
296354
# should be > 0, otherwise means no limit.
297-
# maxBlockRange = 5000
355+
maxBlockRange = 5000
298356

299357
# The maximum number of allowed topics within a topic criteria, default value is 1000,
300358
# should be > 0, otherwise means no limit.
301-
# maxSubTopics = 1000
359+
maxSubTopics = 1000
302360
}
303361

304362
# Disabled api list, it will work for http, rpc and pbft, both fullnode and soliditynode,
@@ -363,9 +421,14 @@ rate.limiter = {
363421
# },
364422
]
365423

424+
# global qps, default 50000
425+
# global.qps = 50000
426+
# IP-based global qps, default 10000
427+
# global.ip.qps = 10000
366428
}
367429

368430

431+
369432
seed.node = {
370433
# List of the seed nodes
371434
# Seed nodes are stable full nodes
@@ -375,17 +438,17 @@ seed.node = {
375438
# "ip:port"
376439
# ]
377440
ip.list = [
378-
"54.236.37.243:18888",
441+
"3.225.171.164:18888",
379442
"52.53.189.99:18888",
380443
"18.196.99.16:18888",
381444
"34.253.187.192:18888",
382-
"52.56.56.149:18888",
445+
"18.133.82.227:18888",
383446
"35.180.51.163:18888",
384447
"54.252.224.209:18888",
385-
"18.228.15.36:18888",
448+
"18.231.27.82:18888",
386449
"52.15.93.92:18888",
387450
"34.220.77.106:18888",
388-
"13.127.47.162:18888",
451+
"15.207.144.3:18888",
389452
"13.124.62.58:18888",
390453
"54.151.226.240:18888",
391454
"35.174.93.198:18888",
@@ -404,7 +467,9 @@ seed.node = {
404467
"54.82.161.39:18888",
405468
"54.179.207.68:18888",
406469
"18.142.82.44:18888",
407-
"18.163.230.203:18888"
470+
"18.163.230.203:18888",
471+
# "[2a05:d014:1f2f:2600:1b15:921:d60b:4c60]:18888", // use this if support ipv6
472+
# "[2600:1f18:7260:f400:8947:ebf3:78a0:282b]:18888", // use this if support ipv6
408473
]
409474
}
410475

@@ -595,7 +660,7 @@ block = {
595660
proposalExpireTime = 259200000 // 3 day: 259200000(ms)
596661
}
597662

598-
# Transaction reference block, default is "solid", configure to "head" may accur TaPos error
663+
# Transaction reference block, default is "solid", configure to "head" may cause TaPos error
599664
# trx.reference.block = "solid" // head;solid;
600665

601666
# This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000.
@@ -611,7 +676,8 @@ vm = {
611676
# Indicates whether the node stores featured internal transactions, such as freeze, vote and so on
612677
# saveFeaturedInternalTx = false
613678

614-
# Indicates whether the node stores the details of the internal transactions generated by the CANCELALLUNFREEZEV2 opcode, such as bandwidth/energy/tronpower cancel amount.
679+
# Indicates whether the node stores the details of the internal transactions generated by the
680+
# CANCELALLUNFREEZEV2 opcode, such as bandwidth/energy/tronpower cancel amount.
615681
# saveCancelAllUnfreezeV2Details = false
616682

617683
# In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged
@@ -635,21 +701,32 @@ event.subscribe = {
635701
bindport = 5555 // bind port
636702
sendqueuelength = 1000 //max length of send queue
637703
}
704+
version = 0
705+
# Specify the starting block number to sync historical events. This is only applicable when version = 1.
706+
# After performing a full event sync, set this value to 0 or a negative number.
707+
# startSyncBlockNum = 1
638708

639709
path = "" // absolute path of plugin
640710
server = "" // target server address to receive event triggers
641-
dbconfig = "" // dbname|username|password
642-
contractParse = true,
711+
// dbname|username|password, if you want to create indexes for collections when the collections
712+
// are not exist, you can add version and set it to 2, as dbname|username|password|version
713+
// if you use version 2 and one collection not exists, it will create index automaticaly;
714+
// if you use version 2 and one collection exists, it will not create index, you must create index manually;
715+
dbconfig = ""
716+
contractParse = true
643717
topics = [
644718
{
645719
triggerName = "block" // block trigger, the value can't be modified
646720
enable = false
647721
topic = "block" // plugin topic, the value could be modified
722+
solidified = false // if set true, just need solidified block, default is false
648723
},
649724
{
650725
triggerName = "transaction"
651726
enable = false
652727
topic = "transaction"
728+
solidified = false
729+
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, default is false
653730
},
654731
{
655732
triggerName = "contractevent"
@@ -660,9 +737,10 @@ event.subscribe = {
660737
triggerName = "contractlog"
661738
enable = false
662739
topic = "contractlog"
740+
redundancy = false // if set true, contractevent will also be regarded as contractlog
663741
},
664742
{
665-
triggerName = "solidity" // solidity block event trigger, the value can't be modified
743+
triggerName = "solidity" // solidity block trigger(just include solidity block number and timestamp), the value can't be modified
666744
enable = true // the default value is true
667745
topic = "solidity"
668746
},
@@ -675,6 +753,7 @@ event.subscribe = {
675753
triggerName = "soliditylog"
676754
enable = false
677755
topic = "soliditylog"
756+
redundancy = false // if set true, solidityevent will also be regarded as soliditylog
678757
}
679758
]
680759

@@ -689,5 +768,5 @@ event.subscribe = {
689768
"" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
690769
]
691770
}
692-
693771
}
772+

0 commit comments

Comments
 (0)