Skip to content

feat(config): sync latest config with java-tron #139

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
merged 1 commit into from
May 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 83 additions & 76 deletions main_net_config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ storage {

# Otherwise, db configs will remain default and data will be stored in
# the path of "output-directory" or which is set by "-d" ("--output-directory").

# setting can impove leveldb performance .... start
# node: if this will increase process fds,you may be check your ulimit if 'too many open files' error occurs
# see https://github.com/tronprotocol/tips/blob/master/tip-343.md for detail
Expand All @@ -32,6 +33,7 @@ storage {
# maxOpenFiles = 1000
#}
# setting can impove leveldb performance .... end

# Attention: name is a required field that must be set !!!
properties = [
// {
Expand Down Expand Up @@ -93,12 +95,15 @@ storage {
# the estimated number of block transactions (default 1000, min 100, max 10000).
# so the total number of cached transactions is 65536 * txCache.estimatedTransactions
# txCache.estimatedTransactions = 1000
# if true, transaction cache initialization will be faster. default false
# txCache.initOptimization = true

# data root setting, for check data, currently, only reward-vi is used.

# merkleRoot = {
# reward-vi = 9debcb9924055500aaae98cdee10501c5c39d4daa75800a996f4bdda73dbccd8 // main-net, Sha256Hash, hexString
# }

}

node.discovery = {
Expand Down Expand Up @@ -161,7 +166,7 @@ node {

udpNettyWorkThreadNum = 1

# Number of validate sign thread, default availableProcessors / 2
# Number of validate sign thread, default availableProcessors
# validateSignThreadNum = 16

maxConnections = 30
Expand All @@ -177,6 +182,7 @@ node {
minParticipationRate = 15

isOpenFullTcpDisconnect = false
inactiveThreshold = 600 //seconds

p2p {
version = 11111 # 11111: mainnet; 20180622: testnet
Expand Down Expand Up @@ -241,7 +247,7 @@ 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
}
Expand Down Expand Up @@ -269,15 +275,15 @@ node {

# Dynamic loading configuration function, disabled by default
# dynamicConfig = {
# enable = false
# Configuration file change check interval, default is 600 seconds
# checkInterval = 600
# enable = false
# Configuration file change check interval, default is 600 seconds
# checkInterval = 600
# }

dns {
# dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty
treeUrls = [
#"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net", //offical dns tree
#"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net",
]

# enable or disable dns publish, default false
Expand Down Expand Up @@ -361,6 +367,7 @@ node {
# "getaccount",
# "getnowblock2"
# ]

}

## rate limiter config
Expand Down Expand Up @@ -653,7 +660,7 @@ block = {
proposalExpireTime = 259200000 // 3 day: 259200000(ms)
}

# Transaction reference block, default is "solid", configure to "head" may incur TaPos error
# Transaction reference block, default is "solid", configure to "head" may cause TaPos error
# 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.
Expand Down Expand Up @@ -689,77 +696,77 @@ committee = {
}

event.subscribe = {
native = {
useNativeQueue = true // if true, use native message queue, else use event plugin.
bindport = 5555 // bind port
sendqueuelength = 1000 //max length of send queue
native = {
useNativeQueue = true // if true, use native message queue, else use event plugin.
bindport = 5555 // bind port
sendqueuelength = 1000 //max length of send queue
}
version = 0
# Specify the starting block number to sync historical events. This is only applicable when version = 1.
# After performing a full event sync, set this value to 0 or a negative number.
# startSyncBlockNum = 1

path = "" // absolute path of plugin
server = "" // target server address to receive event triggers
// dbname|username|password, if you want to create indexes for collections when the collections
// are not exist, you can add version and set it to 2, as dbname|username|password|version
// if you use version 2 and one collection not exists, it will create index automaticaly;
// if you use version 2 and one collection exists, it will not create index, you must create index manually;
dbconfig = ""
contractParse = true
topics = [
{
triggerName = "block" // block trigger, the value can't be modified
enable = false
topic = "block" // plugin topic, the value could be modified
solidified = false // if set true, just need solidified block, default is false
},
{
triggerName = "transaction"
enable = false
topic = "transaction"
solidified = false
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, default is false
},
{
triggerName = "contractevent"
enable = false
topic = "contractevent"
},
{
triggerName = "contractlog"
enable = false
topic = "contractlog"
redundancy = false // if set true, contractevent will also be regarded as contractlog
},
{
triggerName = "solidity" // solidity block trigger(just include solidity block number and timestamp), the value can't be modified
enable = true // the default value is true
topic = "solidity"
},
{
triggerName = "solidityevent"
enable = false
topic = "solidityevent"
},
{
triggerName = "soliditylog"
enable = false
topic = "soliditylog"
redundancy = false // if set true, solidityevent will also be regarded as soliditylog
}
version = 0
# Specify the starting block number to sync historical events. This is only applicable when version = 1.
# After performing a full event sync, set this value to 0 or a negative number.
# startSyncBlockNum = 1

path = "" // absolute path of plugin
server = "" // target server address to receive event triggers
// dbname|username|password, if you want to create indexes for collections when the collections
// are not exist, you can add version and set it to 2, as dbname|username|password|version
// if you use version 2 and one collection not exists, it will create index automaticaly;
// if you use version 2 and one collection exists, it will not create index, you must create index manually;
dbconfig = ""
contractParse = true
topics = [
{
triggerName = "block" // block trigger, the value can't be modified
enable = false
topic = "block" // plugin topic, the value could be modified
solidified = false // if set true, just need solidified block, default is false
},
{
triggerName = "transaction"
enable = false
topic = "transaction"
solidified = false
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, default is false
},
{
triggerName = "contractevent"
enable = false
topic = "contractevent"
},
{
triggerName = "contractlog"
enable = false
topic = "contractlog"
redundancy = false // if set true, contractevent will also be regarded as contractlog
},
{
triggerName = "solidity" // solidity block trigger(just include solidity block number and timestamp), the value can't be modified
enable = true // the default value is true
topic = "solidity"
},
{
triggerName = "solidityevent"
enable = false
topic = "solidityevent"
},
{
triggerName = "soliditylog"
enable = false
topic = "soliditylog"
redundancy = false // if set true, solidityevent will also be regarded as soliditylog
}
]
]

filter = {
fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range
contractAddress = [
"" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address.
]
filter = {
fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range
contractAddress = [
"" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address.
]

contractTopic = [
"" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
]
}
contractTopic = [
"" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
]
}
}