Skip to content

Commit a9c7129

Browse files
committed
add two items
1 parent f7aab21 commit a9c7129

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

framework/src/main/resources/config.conf

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,26 @@ storage {
99
db.sync = false,
1010
db.directory = "database",
1111

12+
# Whether to write transaction result in transRet store
1213
transHistory.switch = "on",
13-
# You can custom these 14 databases' configs:
14-
15-
# account, account-index, asset-issue, block, block-index,
16-
# block_KDB, peers, properties, recent-block, trans,
17-
# utxo, votes, witness, witness_schedule.
18-
19-
# Otherwise, db configs will remain default and data will be stored in
20-
# the path of "output-directory" or which is set by "-d" ("--output-directory").
2114

2215
# setting can impove leveldb performance .... start, deprecated for arm
2316
# node: if this will increase process fds,you may be check your ulimit if 'too many open files' error occurs
2417
# see https://github.com/tronprotocol/tips/blob/master/tip-343.md for detail
25-
# if you find block sync has lower performance,you can try this settings
26-
#default = {
18+
# if you find block sync has lower performance, you can try this settings
19+
# default = {
2720
# maxOpenFiles = 100
28-
#}
29-
#defaultM = {
21+
# }
22+
# defaultM = {
3023
# maxOpenFiles = 500
31-
#}
32-
#defaultL = {
24+
# }
25+
# defaultL = {
3326
# maxOpenFiles = 1000
34-
#}
27+
# }
3528
# setting can impove leveldb performance .... end, deprecated for arm
3629

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").
3732
# Attention: name is a required field that must be set !!!
3833
properties = [
3934
# {
@@ -75,6 +70,7 @@ storage {
7570
level0FileNumCompactionTrigger = 4
7671
targetFileSizeBase = 256 // n * MB
7772
targetFileSizeMultiplier = 1
73+
maxOpenFiles = 5000
7874
}
7975

8076
balance.history.lookup = false
@@ -85,11 +81,14 @@ storage {
8581
# the estimated number of block transactions (default 1000, min 100, max 10000).
8682
# so the total number of cached transactions is 65536 * txCache.estimatedTransactions
8783
# txCache.estimatedTransactions = 1000
84+
8885
# if true, transaction cache initialization will be faster. Default: false
8986
# txCache.initOptimization = true
9087

91-
# data root setting, for check data, currently, only reward-vi is used.
88+
# The number of blocks flushed to db in each batch during node syncing. Default: 1
89+
snapshot.maxFlushCount = 1
9290

91+
# data root setting, for check data, currently, only reward-vi is used.
9392
# merkleRoot = {
9493
# reward-vi = 9debcb9924055500aaae98cdee10501c5c39d4daa75800a996f4bdda73dbccd8 // main-net, Sha256Hash, hexString
9594
# }

0 commit comments

Comments
 (0)