Skip to content

Commit 3e51f0b

Browse files
committed
optimize comments
1 parent d450009 commit 3e51f0b

File tree

1 file changed

+33
-35
lines changed

1 file changed

+33
-35
lines changed

framework/src/main/resources/config.conf

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
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
24
type = mainnet
3-
# type = testnet
45
}
56

67
storage {
@@ -12,7 +13,7 @@ storage {
1213
# Whether to write transaction result in transRet store
1314
transHistory.switch = "on",
1415

15-
# setting can impove leveldb performance .... start, deprecated for arm
16+
# setting can improve leveldb performance .... start, deprecated for arm
1617
# node: if this will increase process fds,you may be check your ulimit if 'too many open files' error occurs
1718
# see https://github.com/tronprotocol/tips/blob/master/tip-343.md for detail
1819
# if you find block sync has lower performance, you can try this settings
@@ -25,7 +26,7 @@ storage {
2526
# defaultL = {
2627
# maxOpenFiles = 1000
2728
# }
28-
# setting can impove leveldb performance .... end, deprecated for arm
29+
# setting can improve leveldb performance .... end, deprecated for arm
2930

3031
# You can customize the configuration for each database. Otherwise, the database settings will use
3132
# their defaults, and data will be stored in the "output-directory" or in the directory specified
@@ -83,10 +84,10 @@ storage {
8384
# txCache.estimatedTransactions = 1000
8485

8586
# if true, transaction cache initialization will be faster. Default: false
86-
# txCache.initOptimization = true
87+
txCache.initOptimization = true
8788

8889
# The number of blocks flushed to db in each batch during node syncing. Default: 1
89-
snapshot.maxFlushCount = 1
90+
# snapshot.maxFlushCount = 1
9091

9192
# data root setting, for check data, currently, only reward-vi is used.
9293
# merkleRoot = {
@@ -136,7 +137,7 @@ node.metrics = {
136137
}
137138

138139
# influxdb metrics
139-
storageEnable = false # Whether write metrics data into InfluxDb, Default: false.
140+
storageEnable = false # Whether write metrics data into InfluxDb. Default: false.
140141
influxdb {
141142
ip = ""
142143
port = 8086
@@ -158,7 +159,7 @@ node {
158159
connection.timeout = 2
159160

160161
fetchBlock.timeout = 200
161-
syncFetchBatchNum = 2000
162+
# syncFetchBatchNum = 2000
162163

163164
# Number of validate sign thread, default availableProcessors
164165
# validateSignThreadNum = 16
@@ -175,10 +176,10 @@ node {
175176

176177
minParticipationRate = 15
177178

178-
allowShieldedTransactionApi = true
179-
openPrintLog = true
179+
# allowShieldedTransactionApi = true
180+
# openPrintLog = true
180181
# openTransactionSort = false
181-
maxTps = 1000
182+
# maxTps = 1000
182183

183184
isOpenFullTcpDisconnect = false
184185
inactiveThreshold = 600 //seconds
@@ -270,13 +271,13 @@ node {
270271
netMaxTrxPerSecond = 700
271272

272273
# Whether to enable the node detection function. Default: false
273-
nodeDetectEnable = false
274+
# nodeDetectEnable = false
274275

275276
# use your ipv6 address for node discovery and tcp connection. Default: false
276-
enableIpv6 = false
277+
# enableIpv6 = false
277278

278279
# 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
280281

281282
# Dynamic loading configuration function, disabled by default
282283
dynamicConfig = {
@@ -346,15 +347,14 @@ node {
346347
openHistoryQueryWhenLiteFN = false
347348

348349
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
358358

359359
# The maximum blocks range to retrieve logs for eth_getLogs, default value is 5000,
360360
# should be > 0, otherwise means no limit.
@@ -365,25 +365,23 @@ node {
365365
maxSubTopics = 1000
366366
}
367367

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+
]
376374

377375
}
378376

379377
## rate limiter config
380378
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.
384382
# QpsRateLimiterAdapter: qps is the average request count in one second supported by the server, it could be a Double or a Integer.
385383
# 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.
387385
#
388386
# Sample entries:
389387
#
@@ -786,7 +784,7 @@ event.subscribe = {
786784
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice. Default: false
787785
},
788786
{
789-
triggerName = "contractevent"
787+
triggerName = "contractevent" // contractevent represents contractlog data decoded by the ABI.
790788
enable = false
791789
topic = "contractevent"
792790
},

0 commit comments

Comments
 (0)