Skip to content

Commit d450009

Browse files
committed
add config item node.maxTps
1 parent 3c24e97 commit d450009

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

framework/src/main/resources/config.conf

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ storage {
2727
# }
2828
# setting can impove leveldb performance .... end, deprecated for arm
2929

30-
# You can custom every database' configs, Otherwise, db configs will remain default and data will
31-
# be stored in the path of "output-directory" or which is set by "-d" ("--output-directory").
32-
# Attention: name is a required field that must be set !!!
30+
# You can customize the configuration for each database. Otherwise, the database settings will use
31+
# their defaults, and data will be stored in the "output-directory" or in the directory specified
32+
# by the "-d" or "--output-directory" option. Attention: name is a required field that must be set !!!
3333
properties = [
3434
# {
3535
# name = "account",
@@ -129,13 +129,13 @@ crypto {
129129
}
130130

131131
node.metrics = {
132-
# prometheus metrics start
132+
# prometheus metrics
133133
prometheus {
134134
enable = false
135135
port = 9527
136136
}
137137

138-
# influxdb metrics start
138+
# influxdb metrics
139139
storageEnable = false # Whether write metrics data into InfluxDb, Default: false.
140140
influxdb {
141141
ip = ""
@@ -177,7 +177,8 @@ node {
177177

178178
allowShieldedTransactionApi = true
179179
openPrintLog = true
180-
openTransactionSort = false
180+
# openTransactionSort = false
181+
maxTps = 1000
181182

182183
isOpenFullTcpDisconnect = false
183184
inactiveThreshold = 600 //seconds
@@ -252,7 +253,7 @@ node {
252253
# Transactions can only be broadcast if the number of effective connections is reached.
253254
minEffectiveConnection = 1
254255

255-
# The switch of the reflection service, effective for all gRPC services, Default: false
256+
# The switch of the reflection service, effective for all gRPC services. Default: false
256257
reflectionService = false
257258
}
258259

@@ -268,10 +269,10 @@ node {
268269
# Limits the maximum number (default 700) of transaction from network layer
269270
netMaxTrxPerSecond = 700
270271

271-
# Whether to enable the node detection function, Default: false
272+
# Whether to enable the node detection function. Default: false
272273
nodeDetectEnable = false
273274

274-
# use your ipv6 address for node discovery and tcp connection, Default: false
275+
# use your ipv6 address for node discovery and tcp connection. Default: false
275276
enableIpv6 = false
276277

277278
# if your node's highest block num is below than all your pees', try to acquire new connection. Default: false
@@ -280,7 +281,7 @@ node {
280281
# Dynamic loading configuration function, disabled by default
281282
dynamicConfig = {
282283
enable = false
283-
checkInterval = 600 # Check interval of Configuration file's change, default 600 seconds
284+
checkInterval = 600 # Check interval of Configuration file's change, default is 600 seconds
284285
}
285286

286287
unsolidifiedBlockCheck = false
@@ -292,7 +293,7 @@ node {
292293
#"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net",
293294
]
294295

295-
# enable or disable dns publish, Default: false
296+
# enable or disable dns publish. Default: false
296297
# publish = false
297298

298299
# dns domain to publish nodes, required if publish is true
@@ -650,7 +651,7 @@ genesis.block = {
650651
parentHash = "0xe58f33f9baf9305dc6f82b9f1934ea8f0ade2defb951258d50167028c780351f"
651652
}
652653

653-
# Optional.The default is empty. It is used when the witness account has set the witnessPermission.
654+
# Optional. The default is empty. It is used when the witness account has set the witnessPermission.
654655
# When it is not empty, the localWitnessAccountAddress represents the address of the witness account,
655656
# and the localwitness is configured with the private key of the witnessPermissionAddress in the witness account.
656657
# When it is empty,the localwitness is configured with the private key of the witness account.
@@ -775,14 +776,14 @@ event.subscribe = {
775776
triggerName = "block" // block trigger, the value can't be modified
776777
enable = false
777778
topic = "block" // plugin topic, the value could be modified
778-
solidified = false // if set true, just need solidified block, Default: false
779+
solidified = false // if set true, just need solidified block. Default: false
779780
},
780781
{
781782
triggerName = "transaction"
782783
enable = false
783784
topic = "transaction"
784785
solidified = false
785-
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, Default: false
786+
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice. Default: false
786787
},
787788
{
788789
triggerName = "contractevent"

0 commit comments

Comments
 (0)