From 2daa800f4248c9b95c7ab458a71ad40543b0e9f4 Mon Sep 17 00:00:00 2001 From: jiangyuanshu <317787106@qq.com> Date: Wed, 13 Aug 2025 11:28:53 +0800 Subject: [PATCH 1/2] merge from https://github.com/tron-nile-testnet/nile-testnet/blob/master/framework/src/main/resources/config-nile.conf --- test_net_config.conf | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/test_net_config.conf b/test_net_config.conf index 05833f9e..325fc0b9 100644 --- a/test_net_config.conf +++ b/test_net_config.conf @@ -75,15 +75,6 @@ storage { targetFileSizeMultiplier = 1 } - //backup settings when using rocks db as the storage implement (db.engine="ROCKSDB"). - //if you want to use the backup plugin, please confirm set the db.engine="ROCKSDB" above. - backup = { - enable = false // indicate whether enable the backup plugin - propPath = "prop.properties" // record which bak directory is valid - bak1path = "bak1/database" // you must set two backup directories to prevent application halt unexpected(e.g. kill -9). - bak2path = "bak2/database" - frequency = 10000 // indicate backup db once every 10000 blocks processed. - } balance.history.lookup = false @@ -238,6 +229,9 @@ node { # Transactions can only be broadcast if the number of effective connections is reached. minEffectiveConnection = 1 + + # The switch of the reflection service, effective for all gRPC services + # reflectionService = true } # number of solidity thread in the FullNode. @@ -359,12 +353,12 @@ node { ## rate limiter config rate.limiter = { - # Every api could be set a specific rate limit strategy. Three strategy are supported:GlobalPreemptibleAdapter、IPQPSRateLimiterAdapte、QpsRateLimiterAdapter + # Every api could be set a specific rate limit strategy. Three strategy are supported:GlobalPreemptibleAdapter、IPQPSRateLimiterAdapte、QpsRateLimiterAdapter # GlobalPreemptibleAdapter: permit is the number of preemptible resource, every client must apply one resourse # before do the request and release the resource after got the reponse automaticlly. permit should be a Integer. # QpsRateLimiterAdapter: qps is the average request count in one second supported by the server, it could be a Double or a Integer. # IPQPSRateLimiterAdapter: similar to the QpsRateLimiterAdapter, qps could be a Double or a Integer. - # If do not set, the "default strategy" is set.The "default startegy" is based on QpsRateLimiterAdapter, the qps is set as 1000. + # If do not set, the "default strategy" is set.The "default startegy" is based on QpsRateLimiterAdapter, the qps is set as 10000. # # Sample entries: # @@ -425,16 +419,11 @@ seed.node = { # "ip:port" # ] ip.list = [ - "47.90.214.183:18888", - "47.252.17.40:18888", - "47.253.34.98:18888", - "47.252.3.238:18888", - "47.90.243.177:18888", "44.236.192.97:18888", "44.236.125.107:18888", "44.232.119.174:18888", - "35.167.210.93:18888", - "34.208.18.175:18888" + "52.39.105.180:18888", + "54.70.52.47:18888" ] } @@ -621,8 +610,8 @@ localwitness = [ block = { needSyncCheck = false - maintenanceTimeInterval = 21600000 - proposalExpireTime = 259200000 // 3 day: 259200000(ms) + maintenanceTimeInterval = 600000 + proposalExpireTime = 600000 // } # Transaction reference block, default is "solid", configure to "head" may incur TaPos error @@ -639,11 +628,11 @@ vm = { saveInternalTx = true # Indicates whether the node stores featured internal transactions, such as freeze, vote and so on - # saveFeaturedInternalTx = false + saveFeaturedInternalTx = true # Indicates whether the node stores the details of the internal transactions generated by the # CANCELALLUNFREEZEV2 opcode, such as bandwidth/energy/tronpower cancel amount. - # saveCancelAllUnfreezeV2Details = false + saveCancelAllUnfreezeV2Details = true # In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged # longRunningTime = 10 From 0cf2f2f6f1ee02c900172bcfb0d5c941e6554be7 Mon Sep 17 00:00:00 2001 From: jiangyuanshu <317787106@qq.com> Date: Fri, 22 Aug 2025 18:11:56 +0800 Subject: [PATCH 2/2] delete index.directory from nile --- test_net_config.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_net_config.conf b/test_net_config.conf index 325fc0b9..3642882b 100644 --- a/test_net_config.conf +++ b/test_net_config.conf @@ -8,7 +8,7 @@ storage { db.engine = "LEVELDB", db.sync = false, db.directory = "database", - index.directory = "index", + transHistory.switch = "on", # You can custom these 14 databases' configs: