@@ -13,6 +13,7 @@ storage {
1313
1414 # Otherwise, db configs will remain default and data will be stored in
1515 # the path of "output-directory" or which is set by "-d" ("--output-directory").
16+
1617 # setting can impove leveldb performance .... start
1718 # node: if this will increase process fds,you may be check your ulimit if 'too many open files' error occurs
1819 # see https://github.com/tronprotocol/tips/blob/master/tip-343.md for detail
@@ -27,6 +28,7 @@ storage {
2728 # maxOpenFiles = 1000
2829 #}
2930 # setting can impove leveldb performance .... end
31+
3032 # Attention: name is a required field that must be set !!!
3133 properties = [
3234 // {
@@ -88,12 +90,15 @@ storage {
8890 # the estimated number of block transactions (default 1000, min 100, max 10000).
8991 # so the total number of cached transactions is 65536 * txCache.estimatedTransactions
9092 # txCache.estimatedTransactions = 1000
93+ # if true, transaction cache initialization will be faster. default false
94+ # txCache.initOptimization = true
9195
9296 # data root setting, for check data, currently, only reward-vi is used.
9397
9498 # merkleRoot = {
9599 # reward-vi = 9debcb9924055500aaae98cdee10501c5c39d4daa75800a996f4bdda73dbccd8 // main-net, Sha256Hash, hexString
96100 # }
101+
97102}
98103
99104node.discovery = {
@@ -128,14 +133,14 @@ node.backup {
128133crypto {
129134 engine = "eckey"
130135}
131-
132136# prometheus metrics start
133- node.metrics = {
134- prometheus{
135- enable=true
136- port="9527"
137- }
138- }
137+ # node.metrics = {
138+ # prometheus{
139+ # enable=true
140+ # port="9527"
141+ # }
142+ # }
143+
139144# prometheus metrics end
140145
141146node {
@@ -156,7 +161,7 @@ node {
156161
157162 udpNettyWorkThreadNum = 1
158163
159- # Number of validate sign thread, default availableProcessors / 2
164+ # Number of validate sign thread, default availableProcessors
160165 # validateSignThreadNum = 16
161166
162167 maxConnections = 30
@@ -172,9 +177,10 @@ node {
172177 minParticipationRate = 15
173178
174179 isOpenFullTcpDisconnect = false
180+ inactiveThreshold = 600 //seconds
175181
176182 p2p {
177- version = 11111 # 11111: Mainnet; 20180622: Nile testnet
183+ version = 11111 # mainnet:11111; nile testnet:201910292
178184 }
179185
180186 active = [
@@ -192,7 +198,7 @@ node {
192198 ]
193199
194200 fastForward = [
195- "100.26.245.209 :18888",
201+ "100.27.171.62 :18888",
196202 "15.188.6.125:18888"
197203 ]
198204
@@ -201,11 +207,18 @@ node {
201207 fullNodePort = 8090
202208 solidityEnable = true
203209 solidityPort = 8091
210+ PBFTEnable = true
211+ PBFTPort = 8092
204212 }
205213
206214 rpc {
215+ enable = true
207216 port = 50051
208- #solidityPort = 50061
217+ solidityEnable = true
218+ solidityPort = 50061
219+ PBFTEnable = true
220+ PBFTPort = 50071
221+
209222 # Number of gRPC thread, default availableProcessors / 2
210223 # thread = 16
211224
@@ -257,15 +270,15 @@ node {
257270
258271 # Dynamic loading configuration function, disabled by default
259272 # dynamicConfig = {
260- # enable = false
261- # Configuration file change check interval, default is 600 seconds
262- # checkInterval = 600
273+ # enable = false
274+ # Configuration file change check interval, default is 600 seconds
275+ # checkInterval = 600
263276 # }
264277
265278 dns {
266279 # dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty
267280 treeUrls = [
268- #"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net", //offical dns tree
281+ #"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net",
269282 ]
270283
271284 # enable or disable dns publish, default false
@@ -331,6 +344,14 @@ node {
331344 # httpSolidityPort = 8555
332345 # httpPBFTEnable = true
333346 # httpPBFTPort = 8565
347+
348+ # The maximum blocks range to retrieve logs for eth_getLogs, default value is 5000,
349+ # should be > 0, otherwise means no limit.
350+ maxBlockRange = 5000
351+
352+ # The maximum number of allowed topics within a topic criteria, default value is 1000,
353+ # should be > 0, otherwise means no limit.
354+ maxSubTopics = 1000
334355 }
335356
336357 # Disabled api list, it will work for http, rpc and pbft, both fullnode and soliditynode,
@@ -341,6 +362,7 @@ node {
341362 # "getaccount",
342363 # "getnowblock2"
343364 # ]
365+
344366}
345367
346368## rate limiter config
@@ -633,7 +655,7 @@ block = {
633655 proposalExpireTime = 259200000 // 3 day: 259200000(ms)
634656}
635657
636- # Transaction reference block, default is "solid", configure to "head" may incur TaPos error
658+ # Transaction reference block, default is "solid", configure to "head" may cause TaPos error
637659# trx.reference.block = "solid" // head;solid;
638660
639661# This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000.
@@ -649,6 +671,10 @@ vm = {
649671 # Indicates whether the node stores featured internal transactions, such as freeze, vote and so on
650672 # saveFeaturedInternalTx = false
651673
674+ # Indicates whether the node stores the details of the internal transactions generated by the
675+ # CANCELALLUNFREEZEV2 opcode, such as bandwidth/energy/tronpower cancel amount.
676+ # saveCancelAllUnfreezeV2Details = false
677+
652678 # In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged
653679 # longRunningTime = 10
654680
@@ -660,77 +686,81 @@ vm = {
660686}
661687
662688committee = {
663- allowCreationOfContracts = 0 //Mainnet :0 (reset by committee),test:1
664- allowAdaptiveEnergy = 0 //Mainnet :0 (reset by committee),test:1
689+ allowCreationOfContracts = 0 //mainnet :0 (reset by committee),test:1
690+ allowAdaptiveEnergy = 0 //mainnet :0 (reset by committee),test:1
665691}
666692
667693event.subscribe = {
668- native = {
669- useNativeQueue = true // if true, use native message queue, else use event plugin.
670- bindport = 5555 // bind port
671- sendqueuelength = 1000 //max length of send queue
694+ native = {
695+ useNativeQueue = true // if true, use native message queue, else use event plugin.
696+ bindport = 5555 // bind port
697+ sendqueuelength = 1000 //max length of send queue
698+ }
699+ version = 0
700+ # Specify the starting block number to sync historical events. This is only applicable when version = 1.
701+ # After performing a full event sync, set this value to 0 or a negative number.
702+ # startSyncBlockNum = 1
703+
704+ path = "" // absolute path of plugin
705+ server = "" // target server address to receive event triggers
706+ // dbname|username|password, if you want to create indexes for collections when the collections
707+ // are not exist, you can add version and set it to 2, as dbname|username|password|version
708+ // if you use version 2 and one collection not exists, it will create index automaticaly;
709+ // if you use version 2 and one collection exists, it will not create index, you must create index manually;
710+ dbconfig = ""
711+ contractParse = true
712+ topics = [
713+ {
714+ triggerName = "block" // block trigger, the value can't be modified
715+ enable = false
716+ topic = "block" // plugin topic, the value could be modified
717+ solidified = false // if set true, just need solidified block, default is false
718+ },
719+ {
720+ triggerName = "transaction"
721+ enable = false
722+ topic = "transaction"
723+ solidified = false
724+ ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, default is false
725+ },
726+ {
727+ triggerName = "contractevent"
728+ enable = false
729+ topic = "contractevent"
730+ },
731+ {
732+ triggerName = "contractlog"
733+ enable = false
734+ topic = "contractlog"
735+ redundancy = false // if set true, contractevent will also be regarded as contractlog
736+ },
737+ {
738+ triggerName = "solidity" // solidity block trigger(just include solidity block number and timestamp), the value can't be modified
739+ enable = true // the default value is true
740+ topic = "solidity"
741+ },
742+ {
743+ triggerName = "solidityevent"
744+ enable = false
745+ topic = "solidityevent"
746+ },
747+ {
748+ triggerName = "soliditylog"
749+ enable = false
750+ topic = "soliditylog"
751+ redundancy = false // if set true, solidityevent will also be regarded as soliditylog
672752 }
753+ ]
673754
674- path = "" // absolute path of plugin
675- server = "" // target server address to receive event triggers
676- // dbname|username|password, if you want to create indexes for collections when the collections
677- // are not exist, you can add version and set it to 2, as dbname|username|password|version
678- // if you use version 2 and one collection not exists, it will create index automaticaly;
679- // if you use version 2 and one collection exists, it will not create index, you must create index manually;
680- dbconfig = ""
681- contractParse = true
682- topics = [
683- {
684- triggerName = "block" // block trigger, the value can't be modified
685- enable = false
686- topic = "block" // plugin topic, the value could be modified
687- solidified = false // if set true, just need solidified block, default is false
688- },
689- {
690- triggerName = "transaction"
691- enable = false
692- topic = "transaction"
693- solidified = false
694- ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, default is false
695- },
696- {
697- triggerName = "contractevent"
698- enable = false
699- topic = "contractevent"
700- },
701- {
702- triggerName = "contractlog"
703- enable = false
704- topic = "contractlog"
705- redundancy = false // if set true, contractevent will also be regarded as contractlog
706- },
707- {
708- triggerName = "solidity" // solidity block trigger(just include solidity block number and timestamp), the value can't be modified
709- enable = true // the default value is true
710- topic = "solidity"
711- },
712- {
713- triggerName = "solidityevent"
714- enable = false
715- topic = "solidityevent"
716- },
717- {
718- triggerName = "soliditylog"
719- enable = false
720- topic = "soliditylog"
721- redundancy = false // if set true, solidityevent will also be regarded as soliditylog
722- }
755+ filter = {
756+ fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
757+ toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range
758+ contractAddress = [
759+ "" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address.
723760 ]
724761
725- filter = {
726- fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
727- toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range
728- contractAddress = [
729- "" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address.
730- ]
731-
732- contractTopic = [
733- "" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
734- ]
735- }
762+ contractTopic = [
763+ "" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
764+ ]
765+ }
736766}
0 commit comments