-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(config): fill whole config items #6430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kuny0707
merged 16 commits into
tronprotocol:release_v4.8.1
from
317787106:feature/update_full_config
Aug 29, 2025
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2fdb0f7
fill whole config item
317787106 51eba96
update config.conf
317787106 957cca5
update comment of committee
317787106 c96a8e0
update comment of storageEnable
317787106 25d3967
add node.rpc.maxRstStream, node.rpc.secondsPerWindow
317787106 ad3237a
delete item actuator.whitelist
317787106 f7aab21
comments of single line should starts with #
317787106 a9c7129
add two items
317787106 3c24e97
Merge branch 'release_v4.8.1' into feature/update_full_config
317787106 d450009
add config item node.maxTps
317787106 3e51f0b
optimize comments
317787106 2a8f9f3
update some comments
317787106 11fdc4e
update comments
317787106 f8d367f
update comments
317787106 b1f8321
update comments
317787106 584a224
add some comment
317787106 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,12 +3,15 @@ net { | |
| # type = testnet | ||
| } | ||
|
|
||
| actuator.whitelist = [ | ||
| ] | ||
|
|
||
| storage { | ||
| # Directory for storing persistent data | ||
| db.engine = "LEVELDB", // deprecated for arm, because arm only support "ROCKSDB". | ||
| db.sync = false, | ||
| db.directory = "database", | ||
| index.directory = "index", | ||
|
|
||
| transHistory.switch = "on", | ||
| # You can custom these 14 databases' configs: | ||
|
|
||
|
|
@@ -77,16 +80,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 | ||
|
|
||
| # checkpoint.version = 2 | ||
|
|
@@ -138,15 +131,23 @@ node.backup { | |
| crypto { | ||
| engine = "eckey" | ||
| } | ||
| # prometheus metrics start | ||
| # node.metrics = { | ||
| # prometheus{ | ||
| # enable=true | ||
| # port="9527" | ||
| # } | ||
| # } | ||
|
|
||
| # prometheus metrics end | ||
| node.metrics = { | ||
| # prometheus metrics start | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| prometheus { | ||
| enable = false | ||
| port = 9527 | ||
| } | ||
|
|
||
| # influxdb metrics start | ||
| storageEnable = false | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| influxdb { | ||
| ip = "" | ||
| port = 8086 | ||
| database = "" | ||
| metricsReportInterval = 10 | ||
|
317787106 marked this conversation as resolved.
|
||
| } | ||
| } | ||
|
|
||
| node { | ||
| # trust node for solidity node | ||
|
|
@@ -161,10 +162,7 @@ node { | |
| connection.timeout = 2 | ||
|
|
||
| fetchBlock.timeout = 200 | ||
|
|
||
| tcpNettyWorkThreadNum = 0 | ||
|
|
||
| udpNettyWorkThreadNum = 1 | ||
| syncFetchBatchNum = 2000 | ||
|
|
||
| # Number of validate sign thread, default availableProcessors | ||
| # validateSignThreadNum = 16 | ||
|
|
@@ -181,11 +179,15 @@ node { | |
|
|
||
| minParticipationRate = 15 | ||
|
|
||
| allowShieldedTransactionApi = true | ||
| openPrintLog = true | ||
| openTransactionSort = false | ||
|
|
||
| isOpenFullTcpDisconnect = false | ||
| inactiveThreshold = 600 //seconds | ||
|
|
||
| p2p { | ||
| version = 11111 # 11111: mainnet; 20180622: testnet | ||
| version = 11111 # mainnet:1111; nile:201910292; | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| active = [ | ||
|
|
@@ -248,37 +250,39 @@ 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 | ||
| # The switch of the reflection service, effective for all gRPC services, default false | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| reflectionService = false | ||
| } | ||
|
|
||
| # number of solidity thread in the FullNode. | ||
| # If accessing solidity rpc and http interface timeout, could increase the number of threads, | ||
| # The default value is the number of cpu cores of the machine. | ||
| #solidity.threads = 8 | ||
| # solidity.threads = 8 | ||
|
317787106 marked this conversation as resolved.
|
||
|
|
||
| # Limits the maximum percentage (default 75%) of producing block interval | ||
| # to provide sufficient time to perform other operations e.g. broadcast block | ||
| # blockProducedTimeOut = 75 | ||
|
|
||
| # Limits the maximum number (default 700) of transaction from network layer | ||
| # netMaxTrxPerSecond = 700 | ||
| netMaxTrxPerSecond = 700 | ||
|
|
||
| # Whether to enable the node detection function, default false | ||
| # nodeDetectEnable = false | ||
| nodeDetectEnable = false | ||
|
|
||
| # use your ipv6 address for node discovery and tcp connection, default false | ||
| # enableIpv6 = false | ||
| enableIpv6 = false | ||
|
|
||
| # if your node's highest block num is below than all your pees', try to acquire new connection. default false | ||
| # effectiveCheckEnable = false | ||
| effectiveCheckEnable = false | ||
|
|
||
| # Dynamic loading configuration function, disabled by default | ||
| # dynamicConfig = { | ||
| # enable = false | ||
| # Configuration file change check interval, default is 600 seconds | ||
| # checkInterval = 600 | ||
| # } | ||
| dynamicConfig = { | ||
| enable = false | ||
| checkInterval = 600 # Check interval of Configuration file's change, default 600 seconds | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| unsolidifiedBlockCheck = false | ||
| maxUnsolidifiedBlocks = 54 | ||
|
|
||
| dns { | ||
| # dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty | ||
|
|
@@ -343,12 +347,12 @@ node { | |
| # Note: If you turn on jsonrpc and run it for a while and then turn it off, you will not | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| # be able to get the data from eth_getLogs for that period of time. | ||
|
|
||
| # httpFullNodeEnable = true | ||
| # httpFullNodePort = 8545 | ||
| # httpSolidityEnable = true | ||
| # httpSolidityPort = 8555 | ||
| # httpPBFTEnable = true | ||
| # httpPBFTPort = 8565 | ||
| httpFullNodeEnable = false | ||
| httpFullNodePort = 8545 | ||
| httpSolidityEnable = false | ||
| httpSolidityPort = 8555 | ||
| httpPBFTEnable = false | ||
| httpPBFTPort = 8565 | ||
|
|
||
| # The maximum blocks range to retrieve logs for eth_getLogs, default value is 5000, | ||
| # should be > 0, otherwise means no limit. | ||
|
|
@@ -421,6 +425,12 @@ rate.limiter = { | |
| # }, | ||
| ] | ||
|
|
||
| p2p = { | ||
| # syncBlockChain = 3.0 | ||
| # fetchInvData = 3.0 | ||
| # disconnect = 1.0 | ||
| } | ||
|
|
||
| # global qps, default 50000 | ||
| # global.qps = 50000 | ||
| # IP-based global qps, default 10000 | ||
|
|
@@ -658,10 +668,11 @@ block = { | |
| needSyncCheck = true | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needSyncCheck means ? |
||
| maintenanceTimeInterval = 21600000 | ||
| proposalExpireTime = 259200000 // 3 day: 259200000(ms) | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| # checkFrozenTime = 1 // for test only | ||
| } | ||
|
|
||
| # Transaction reference block, default is "solid", configure to "head" may cause TaPos error | ||
| # trx.reference.block = "solid" // head;solid; | ||
| trx.reference.block = "solid" // head;solid; | ||
|
|
||
| # This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000. | ||
| # trx.expiration.timeInMilliseconds = 60000 | ||
|
|
@@ -672,27 +683,72 @@ vm = { | |
| minTimeRatio = 0.0 | ||
| maxTimeRatio = 5.0 | ||
| saveInternalTx = false | ||
| # lruCacheSize = 500 | ||
| # vmTrace = false | ||
|
|
||
| # Indicates whether the node stores featured internal transactions, such as freeze, vote and so on | ||
| # Indicates whether the node stores featured internal transactions, such as freeze, vote and so on. default false. | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| # saveFeaturedInternalTx = false | ||
|
|
||
| # Indicates whether the node stores the details of the internal transactions generated by the | ||
| # CANCELALLUNFREEZEV2 opcode, such as bandwidth/energy/tronpower cancel amount. | ||
| # Indicates whether the node stores the details of the internal transactions generated by the CANCELALLUNFREEZEV2 opcode, | ||
| # such as bandwidth/energy/tronpower cancel amount. default false. | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| # saveCancelAllUnfreezeV2Details = false | ||
|
|
||
| # In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged | ||
| # longRunningTime = 10 | ||
|
|
||
| # Indicates whether the node support estimate energy API. | ||
| # Indicates whether the node support estimate energy API. default false. | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| # estimateEnergy = false | ||
|
|
||
| # Indicates the max retry time for executing transaction in estimating energy. | ||
| # Indicates the max retry time for executing transaction in estimating energy. default 3. | ||
|
317787106 marked this conversation as resolved.
Outdated
|
||
| # estimateEnergyMaxRetry = 3 | ||
| } | ||
|
|
||
| committee = { | ||
| allowCreationOfContracts = 0 //mainnet:0 (reset by committee),test:1 | ||
| allowAdaptiveEnergy = 0 //mainnet:0 (reset by committee),test:1 | ||
| # allowCreationOfContracts = 0 | ||
|
317787106 marked this conversation as resolved.
|
||
| # allowMultiSign = 0 | ||
| # allowAdaptiveEnergy = 0 | ||
| # allowDelegateResource = 0 | ||
| # allowSameTokenName = 0 | ||
| # allowTvmTransferTrc10 = 0 | ||
| # allowTvmConstantinople = 0 | ||
| # allowTvmSolidity059 = 0 | ||
| # forbidTransferToContract = 0 | ||
| # allowShieldedTRC20Transaction = 0 | ||
| # allowTvmIstanbul = 0 | ||
| # allowMarketTransaction = 0 | ||
| # allowProtoFilterNum = 0 | ||
| # allowAccountStateRoot = 0 | ||
| # changedDelegation = 0 | ||
| # allowPBFT = 0 | ||
| # pBFTExpireNum = 0 | ||
| # allowTransactionFeePool = 0 | ||
| # allowBlackHoleOptimization = 0 | ||
| # allowNewResourceModel = 0 | ||
| # allowReceiptsMerkleRoot = 0 | ||
| # allowTvmFreeze = 0 | ||
| # allowTvmVote = 0 | ||
| # unfreezeDelayDays = 0 | ||
| # allowTvmLondon = 0 | ||
| # allowTvmCompatibleEvm = 0 | ||
| # allowNewRewardAlgorithm = 0 | ||
| # allowAccountAssetOptimization = 0 | ||
| # allowAssetOptimization = 0 | ||
| # allowNewReward = 0 | ||
| # memoFee = 0 | ||
| # allowDelegateOptimization = 0 | ||
| # allowDynamicEnergy = 0 | ||
| # dynamicEnergyThreshold = 0 | ||
| # dynamicEnergyMaxFactor = 0 | ||
| # allowTvmShangHai = 0 | ||
| # allowOldRewardOpt = 0 | ||
| # allowEnergyAdjustment = 0 | ||
| # allowStrictMath = 0 | ||
| # allowTvmCancun = 0 | ||
| # allowTvmBlob = 0 | ||
| # consensusLogicOptimization = 0 | ||
| # allowOptimizedReturnValueOfChainId = 0 | ||
| } | ||
|
|
||
| event.subscribe = { | ||
|
|
@@ -769,4 +825,3 @@ event.subscribe = { | |
| ] | ||
| } | ||
| } | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use the configuration from the master branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docker build needs updating, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a relative path, once it is merged into master, it refers to master's file. tron-deployment will sync from this file later, so docker will do nothing.