Skip to content

Commit 8dfd120

Browse files
committed
feat(config): sync latest config with java-tron
1 parent 964ea1a commit 8dfd120

File tree

1 file changed

+83
-76
lines changed

1 file changed

+83
-76
lines changed

main_net_config.conf

Lines changed: 83 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ storage {
1818

1919
# Otherwise, db configs will remain default and data will be stored in
2020
# the path of "output-directory" or which is set by "-d" ("--output-directory").
21+
2122
# setting can impove leveldb performance .... start
2223
# node: if this will increase process fds,you may be check your ulimit if 'too many open files' error occurs
2324
# see https://github.com/tronprotocol/tips/blob/master/tip-343.md for detail
@@ -32,6 +33,7 @@ storage {
3233
# maxOpenFiles = 1000
3334
#}
3435
# setting can impove leveldb performance .... end
36+
3537
# Attention: name is a required field that must be set !!!
3638
properties = [
3739
// {
@@ -93,12 +95,15 @@ storage {
9395
# the estimated number of block transactions (default 1000, min 100, max 10000).
9496
# so the total number of cached transactions is 65536 * txCache.estimatedTransactions
9597
# txCache.estimatedTransactions = 1000
98+
# if true, transaction cache initialization will be faster. default false
99+
# txCache.initOptimization = true
96100

97101
# data root setting, for check data, currently, only reward-vi is used.
98102

99103
# merkleRoot = {
100104
# reward-vi = 9debcb9924055500aaae98cdee10501c5c39d4daa75800a996f4bdda73dbccd8 // main-net, Sha256Hash, hexString
101105
# }
106+
102107
}
103108

104109
node.discovery = {
@@ -161,7 +166,7 @@ node {
161166

162167
udpNettyWorkThreadNum = 1
163168

164-
# Number of validate sign thread, default availableProcessors / 2
169+
# Number of validate sign thread, default availableProcessors
165170
# validateSignThreadNum = 16
166171

167172
maxConnections = 30
@@ -177,6 +182,7 @@ node {
177182
minParticipationRate = 15
178183

179184
isOpenFullTcpDisconnect = false
185+
inactiveThreshold = 600 //seconds
180186

181187
p2p {
182188
version = 11111 # 11111: mainnet; 20180622: testnet
@@ -241,7 +247,7 @@ node {
241247

242248
# Transactions can only be broadcast if the number of effective connections is reached.
243249
minEffectiveConnection = 1
244-
250+
245251
# The switch of the reflection service, effective for all gRPC services
246252
# reflectionService = true
247253
}
@@ -269,15 +275,15 @@ node {
269275

270276
# Dynamic loading configuration function, disabled by default
271277
# dynamicConfig = {
272-
# enable = false
273-
# Configuration file change check interval, default is 600 seconds
274-
# checkInterval = 600
278+
# enable = false
279+
# Configuration file change check interval, default is 600 seconds
280+
# checkInterval = 600
275281
# }
276282

277283
dns {
278284
# dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty
279285
treeUrls = [
280-
#"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net", //offical dns tree
286+
#"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net",
281287
]
282288

283289
# enable or disable dns publish, default false
@@ -361,6 +367,7 @@ node {
361367
# "getaccount",
362368
# "getnowblock2"
363369
# ]
370+
364371
}
365372

366373
## rate limiter config
@@ -653,7 +660,7 @@ block = {
653660
proposalExpireTime = 259200000 // 3 day: 259200000(ms)
654661
}
655662

656-
# Transaction reference block, default is "solid", configure to "head" may incur TaPos error
663+
# Transaction reference block, default is "solid", configure to "head" may cause TaPos error
657664
# trx.reference.block = "solid" // head;solid;
658665

659666
# This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000.
@@ -689,77 +696,77 @@ committee = {
689696
}
690697

691698
event.subscribe = {
692-
native = {
693-
useNativeQueue = true // if true, use native message queue, else use event plugin.
694-
bindport = 5555 // bind port
695-
sendqueuelength = 1000 //max length of send queue
699+
native = {
700+
useNativeQueue = true // if true, use native message queue, else use event plugin.
701+
bindport = 5555 // bind port
702+
sendqueuelength = 1000 //max length of send queue
703+
}
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
708+
709+
path = "" // absolute path of plugin
710+
server = "" // target server address to receive event triggers
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
717+
topics = [
718+
{
719+
triggerName = "block" // block trigger, the value can't be modified
720+
enable = false
721+
topic = "block" // plugin topic, the value could be modified
722+
solidified = false // if set true, just need solidified block, default is false
723+
},
724+
{
725+
triggerName = "transaction"
726+
enable = false
727+
topic = "transaction"
728+
solidified = false
729+
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, default is false
730+
},
731+
{
732+
triggerName = "contractevent"
733+
enable = false
734+
topic = "contractevent"
735+
},
736+
{
737+
triggerName = "contractlog"
738+
enable = false
739+
topic = "contractlog"
740+
redundancy = false // if set true, contractevent will also be regarded as contractlog
741+
},
742+
{
743+
triggerName = "solidity" // solidity block trigger(just include solidity block number and timestamp), the value can't be modified
744+
enable = true // the default value is true
745+
topic = "solidity"
746+
},
747+
{
748+
triggerName = "solidityevent"
749+
enable = false
750+
topic = "solidityevent"
751+
},
752+
{
753+
triggerName = "soliditylog"
754+
enable = false
755+
topic = "soliditylog"
756+
redundancy = false // if set true, solidityevent will also be regarded as soliditylog
696757
}
697-
version = 0
698-
# Specify the starting block number to sync historical events. This is only applicable when version = 1.
699-
# After performing a full event sync, set this value to 0 or a negative number.
700-
# startSyncBlockNum = 1
701-
702-
path = "" // absolute path of plugin
703-
server = "" // target server address to receive event triggers
704-
// dbname|username|password, if you want to create indexes for collections when the collections
705-
// are not exist, you can add version and set it to 2, as dbname|username|password|version
706-
// if you use version 2 and one collection not exists, it will create index automaticaly;
707-
// if you use version 2 and one collection exists, it will not create index, you must create index manually;
708-
dbconfig = ""
709-
contractParse = true
710-
topics = [
711-
{
712-
triggerName = "block" // block trigger, the value can't be modified
713-
enable = false
714-
topic = "block" // plugin topic, the value could be modified
715-
solidified = false // if set true, just need solidified block, default is false
716-
},
717-
{
718-
triggerName = "transaction"
719-
enable = false
720-
topic = "transaction"
721-
solidified = false
722-
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, default is false
723-
},
724-
{
725-
triggerName = "contractevent"
726-
enable = false
727-
topic = "contractevent"
728-
},
729-
{
730-
triggerName = "contractlog"
731-
enable = false
732-
topic = "contractlog"
733-
redundancy = false // if set true, contractevent will also be regarded as contractlog
734-
},
735-
{
736-
triggerName = "solidity" // solidity block trigger(just include solidity block number and timestamp), the value can't be modified
737-
enable = true // the default value is true
738-
topic = "solidity"
739-
},
740-
{
741-
triggerName = "solidityevent"
742-
enable = false
743-
topic = "solidityevent"
744-
},
745-
{
746-
triggerName = "soliditylog"
747-
enable = false
748-
topic = "soliditylog"
749-
redundancy = false // if set true, solidityevent will also be regarded as soliditylog
750-
}
751-
]
758+
]
752759

753-
filter = {
754-
fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
755-
toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range
756-
contractAddress = [
757-
"" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address.
758-
]
760+
filter = {
761+
fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
762+
toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range
763+
contractAddress = [
764+
"" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address.
765+
]
759766

760-
contractTopic = [
761-
"" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
762-
]
763-
}
767+
contractTopic = [
768+
"" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
769+
]
770+
}
764771
}
765772

0 commit comments

Comments
 (0)