Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Requires 64-bit version of `JDK 17` to be installed, other JDK versions are not


## Configuration flile
Get the mainnet configuration file: [main_net_config.conf](https://github.com/tronprotocol/tron-deployment/blob/master/main_net_config.conf), other network configuration files can be found [here](https://github.com/tronprotocol/tron-deployment).
Get the mainnet configuration file: [config.conf](framework/src/main/resources/config.conf), other network configuration files can be found [here](https://github.com/tronprotocol/tron-deployment).

Copy link
Copy Markdown
Collaborator

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?

Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Collaborator Author

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.


## Hardware Requirements

Expand Down
153 changes: 104 additions & 49 deletions framework/src/main/resources/config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Comment thread
317787106 marked this conversation as resolved.
Outdated
prometheus {
enable = false
port = 9527
}

# influxdb metrics start
storageEnable = false
Comment thread
317787106 marked this conversation as resolved.
Outdated
influxdb {
ip = ""
port = 8086
database = ""
metricsReportInterval = 10
Comment thread
317787106 marked this conversation as resolved.
}
}

node {
# trust node for solidity node
Expand All @@ -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
Expand All @@ -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;
Comment thread
317787106 marked this conversation as resolved.
Outdated
}

active = [
Expand Down Expand Up @@ -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
Comment thread
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
Comment thread
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
Comment thread
317787106 marked this conversation as resolved.
Outdated
}

unsolidifiedBlockCheck = false
maxUnsolidifiedBlocks = 54

dns {
# dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty
Expand Down Expand Up @@ -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
Comment thread
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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -658,10 +668,11 @@ block = {
needSyncCheck = true

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needSyncCheck means ?

maintenanceTimeInterval = 21600000
proposalExpireTime = 259200000 // 3 day: 259200000(ms)
Comment thread
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
Expand All @@ -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.
Comment thread
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.
Comment thread
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.
Comment thread
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.
Comment thread
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
Comment thread
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 = {
Expand Down Expand Up @@ -769,4 +825,3 @@ event.subscribe = {
]
}
}