You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: framework/src/main/resources/config.conf
+33-35Lines changed: 33 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
net {
2
+
# Type can be 'mainnet' or 'testnet', refers to address type. Hex address of mainnet begin with 0x41,
3
+
# and testnet begin with 0xa0. 'testnet' is not related to nile, shasta or private net
2
4
type = mainnet
3
-
# type = testnet
4
5
}
5
6
6
7
storage {
@@ -12,7 +13,7 @@ storage {
12
13
# Whether to write transaction result in transRet store
13
14
transHistory.switch = "on",
14
15
15
-
# setting can impove leveldb performance .... start, deprecated for arm
16
+
# setting can improve leveldb performance .... start, deprecated for arm
16
17
# node: if this will increase process fds,you may be check your ulimit if 'too many open files' error occurs
17
18
# see https://github.com/tronprotocol/tips/blob/master/tip-343.md for detail
18
19
# if you find block sync has lower performance, you can try this settings
@@ -25,7 +26,7 @@ storage {
25
26
# defaultL = {
26
27
# maxOpenFiles = 1000
27
28
# }
28
-
# setting can impove leveldb performance .... end, deprecated for arm
29
+
# setting can improve leveldb performance .... end, deprecated for arm
29
30
30
31
# You can customize the configuration for each database. Otherwise, the database settings will use
31
32
# their defaults, and data will be stored in the "output-directory" or in the directory specified
@@ -83,10 +84,10 @@ storage {
83
84
# txCache.estimatedTransactions = 1000
84
85
85
86
# if true, transaction cache initialization will be faster. Default: false
86
-
# txCache.initOptimization = true
87
+
txCache.initOptimization = true
87
88
88
89
# The number of blocks flushed to db in each batch during node syncing. Default: 1
89
-
snapshot.maxFlushCount = 1
90
+
# snapshot.maxFlushCount = 1
90
91
91
92
# data root setting, for check data, currently, only reward-vi is used.
92
93
# merkleRoot = {
@@ -136,7 +137,7 @@ node.metrics = {
136
137
}
137
138
138
139
# influxdb metrics
139
-
storageEnable = false # Whether write metrics data into InfluxDb, Default: false.
140
+
storageEnable = false # Whether write metrics data into InfluxDb. Default: false.
140
141
influxdb {
141
142
ip = ""
142
143
port = 8086
@@ -158,7 +159,7 @@ node {
158
159
connection.timeout = 2
159
160
160
161
fetchBlock.timeout = 200
161
-
syncFetchBatchNum = 2000
162
+
# syncFetchBatchNum = 2000
162
163
163
164
# Number of validate sign thread, default availableProcessors
164
165
# validateSignThreadNum = 16
@@ -175,10 +176,10 @@ node {
175
176
176
177
minParticipationRate = 15
177
178
178
-
allowShieldedTransactionApi = true
179
-
openPrintLog = true
179
+
# allowShieldedTransactionApi = true
180
+
# openPrintLog = true
180
181
# openTransactionSort = false
181
-
maxTps = 1000
182
+
# maxTps = 1000
182
183
183
184
isOpenFullTcpDisconnect = false
184
185
inactiveThreshold = 600 //seconds
@@ -270,13 +271,13 @@ node {
270
271
netMaxTrxPerSecond = 700
271
272
272
273
# Whether to enable the node detection function. Default: false
273
-
nodeDetectEnable = false
274
+
# nodeDetectEnable = false
274
275
275
276
# use your ipv6 address for node discovery and tcp connection. Default: false
276
-
enableIpv6 = false
277
+
# enableIpv6 = false
277
278
278
279
# if your node's highest block num is below than all your pees', try to acquire new connection. Default: false
279
-
effectiveCheckEnable = false
280
+
# effectiveCheckEnable = false
280
281
281
282
# Dynamic loading configuration function, disabled by default
282
283
dynamicConfig = {
@@ -346,15 +347,14 @@ node {
346
347
openHistoryQueryWhenLiteFN = false
347
348
348
349
jsonrpc {
349
-
# Note: If you turn on jsonrpc and run it for a while and then turn it off, you will not
350
-
# be able to get the data from eth_getLogs for that period of time.
351
-
352
-
httpFullNodeEnable = false
353
-
httpFullNodePort = 8545
354
-
httpSolidityEnable = false
355
-
httpSolidityPort = 8555
356
-
httpPBFTEnable = false
357
-
httpPBFTPort = 8565
350
+
# Note: Before release_4.8.1, if you turn on jsonrpc and run it for a while and then turn it off,
351
+
# you will not be able to get the data from eth_getLogs for that period of time. Default: false
352
+
# httpFullNodeEnable = false
353
+
# httpFullNodePort = 8545
354
+
# httpSolidityEnable = false
355
+
# httpSolidityPort = 8555
356
+
# httpPBFTEnable = false
357
+
# httpPBFTPort = 8565
358
358
359
359
# The maximum blocks range to retrieve logs for eth_getLogs, default value is 5000,
360
360
# should be > 0, otherwise means no limit.
@@ -365,25 +365,23 @@ node {
365
365
maxSubTopics = 1000
366
366
}
367
367
368
-
# Disabled api list, it will work for http, rpc and pbft, both fullnode and soliditynode,
369
-
# but not jsonrpc.
370
-
# Sample: The setting is case insensitive, GetNowBlock2 is equal to getnowblock2
371
-
#
372
-
# disabledApi = [
373
-
# "getaccount",
374
-
# "getnowblock2"
375
-
# ]
368
+
# Disabled api list, it will work for http, rpc and pbft, both FullNode and SolidityNode,
369
+
# but not jsonrpc. The setting is case insensitive, GetNowBlock2 is equal to getnowblock2
370
+
disabledApi = [
371
+
# "getaccount",
372
+
# "getnowblock2"
373
+
]
376
374
377
375
}
378
376
379
377
## rate limiter config
380
378
rate.limiter = {
381
-
# Every api could be set a specific rate limit strategy. Three strategy are supported:GlobalPreemptibleAdapter、IPQPSRateLimiterAdapte、QpsRateLimiterAdapter
382
-
# GlobalPreemptibleAdapter: permit is the number of preemptible resource, every client must apply one resourse
383
-
# before do the request and release the resource after got the reponse automaticlly. permit should be a Integer.
379
+
# Every api could be set a specific rate limit strategy. Three strategy are supported:GlobalPreemptibleAdapter、IPQPSRateLimiterAdapter、QpsRateLimiterAdapter
380
+
# GlobalPreemptibleAdapter: permit is the number of preemptible resource, every client must apply one resource
381
+
# before do the request and release the resource after got the response automatically. permit should be a Integer.
384
382
# QpsRateLimiterAdapter: qps is the average request count in one second supported by the server, it could be a Double or a Integer.
385
383
# IPQPSRateLimiterAdapter: similar to the QpsRateLimiterAdapter, qps could be a Double or a Integer.
386
-
# If do not set, the "default strategy" is set.The "default startegy" is based on QpsRateLimiterAdapter, the qps is set as 1000.
384
+
# If do not set, the "default strategy" is set.The "default strategy" is based on QpsRateLimiterAdapter, the qps is set as 1000.
387
385
#
388
386
# Sample entries:
389
387
#
@@ -786,7 +784,7 @@ event.subscribe = {
786
784
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice. Default: false
787
785
},
788
786
{
789
-
triggerName = "contractevent"
787
+
triggerName = "contractevent" // contractevent represents contractlog data decoded by the ABI.
0 commit comments