-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(config): sync config.conf with tron-deployment #6332
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
Open
halibobo1205
wants to merge
1
commit into
tronprotocol:release_v4.8.1
Choose a base branch
from
halibobo1205:feat/update_config
base: release_v4.8.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,7 @@ storage { | |
# data root setting, for check data, currently, only reward-vi is used. | ||
|
||
# merkleRoot = { | ||
# reward-vi = 9debcb9924055500aaae98cdee10501c5c39d4daa75800a996f4bdda73dbccd8 // main-net, Sha256Hash, hexString | ||
# reward-vi = 9debcb9924055500aaae98cdee10501c5c39d4daa75800a996f4bdda73dbccd8 // main-net, Sha256Hash, hexString | ||
# } | ||
|
||
} | ||
|
@@ -119,13 +119,13 @@ node.discovery = { | |
#} | ||
|
||
node.backup { | ||
# udp listen port, each member should have the same configuration | ||
port = 10001 | ||
|
||
# my priority, each member should use different priority | ||
priority = 8 | ||
|
||
# udp listen port, each member should have the save configuration | ||
port = 10001 | ||
|
||
# time interval to send keepAlive message, each member should have the save configuration | ||
# time interval to send keepAlive message, each member should have the same configuration | ||
keepAliveInterval = 3000 | ||
|
||
# peer's ip list, can't contain mine | ||
|
@@ -166,12 +166,14 @@ node { | |
|
||
udpNettyWorkThreadNum = 1 | ||
|
||
# Number of validate sign thread, default availableProcessors | ||
# validateSignThreadNum = 16 | ||
|
||
maxConnections = 30 | ||
|
||
minConnections = 8 | ||
minActiveConnections = 3 | ||
|
||
# Number of validate sign thread, default availableProcessors / 2 | ||
# validateSignThreadNum = 16 | ||
minActiveConnections = 3 | ||
|
||
maxConnectionsWithSameIp = 2 | ||
|
||
|
@@ -214,26 +216,14 @@ node { | |
PBFTPort = 8092 | ||
} | ||
|
||
# use your ipv6 address for node discovery and tcp connection, default 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 | ||
|
||
dns { | ||
# dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty | ||
treeUrls = [ | ||
#"tree://AKMQMNAJJBL73LXWPXDI4I5ZWWIZ4AWO34DWQ636QOBBXNFXH3LQS@main.trondisco.net", | ||
] | ||
} | ||
|
||
rpc { | ||
enable = true | ||
port = 50051 | ||
solidityEnable = true | ||
solidityPort = 50061 | ||
PBFTEnable = true | ||
PBFTPort = 50071 | ||
|
||
# Number of gRPC thread, default availableProcessors / 2 | ||
# thread = 16 | ||
|
||
|
@@ -274,6 +264,74 @@ node { | |
# Limits the maximum number (default 700) of transaction from network layer | ||
# netMaxTrxPerSecond = 700 | ||
|
||
# Whether to enable the node detection function, default false | ||
# nodeDetectEnable = false | ||
|
||
# use your ipv6 address for node discovery and tcp connection, default 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 | ||
|
||
# Dynamic loading configuration function, disabled by default | ||
# dynamicConfig = { | ||
# 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", | ||
] | ||
|
||
# enable or disable dns publish, default false | ||
# publish = false | ||
|
||
# dns domain to publish nodes, required if publish is true | ||
# dnsDomain = "nodes1.example.org" | ||
|
||
# dns private key used to publish, required if publish is true, hex string of length 64 | ||
# dnsPrivate = "b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291" | ||
|
||
# known dns urls to publish if publish is true, url format tree://{pubkey}@{domain}, default empty | ||
# knownUrls = [ | ||
#"tree://APFGGTFOBVE2ZNAB3CSMNNX6RRK3ODIRLP2AA5U4YFAA6MSYZUYTQ@nodes2.example.org", | ||
# ] | ||
|
||
# staticNodes = [ | ||
# static nodes to published on dns | ||
# Sample entries: | ||
# "ip:port", | ||
# "ip:port" | ||
# ] | ||
|
||
# merge several nodes into a leaf of tree, should be 1~5 | ||
# maxMergeSize = 5 | ||
|
||
# only nodes change percent is bigger then the threshold, we update data on dns | ||
# changeThreshold = 0.1 | ||
|
||
# dns server to publish, required if publish is true, only aws or aliyun is support | ||
# serverType = "aws" | ||
|
||
# access key id of aws or aliyun api, required if publish is true, string | ||
# accessKeyId = "your-key-id" | ||
|
||
# access key secret of aws or aliyun api, required if publish is true, string | ||
# accessKeySecret = "your-key-secret" | ||
|
||
# if publish is true and serverType is aliyun, it's endpoint of aws dns server, string | ||
# aliyunDnsEndpoint = "alidns.aliyuncs.com" | ||
|
||
# if publish is true and serverType is aws, it's region of aws api, such as "eu-south-1", string | ||
# awsRegion = "us-east-1" | ||
|
||
# if publish is true and server-type is aws, it's host zone id of aws's domain, string | ||
# awsHostZoneId = "your-host-zone-id" | ||
} | ||
|
||
# open the history query APIs(http&GRPC) when node is a lite fullNode, | ||
# like {getBlockByNum, getBlockByID, getTransactionByID...}. | ||
# default: false. | ||
|
@@ -294,11 +352,11 @@ node { | |
|
||
# The maximum blocks range to retrieve logs for eth_getLogs, default value is 5000, | ||
# should be > 0, otherwise means no limit. | ||
# maxBlockRange = 5000 | ||
maxBlockRange = 5000 | ||
|
||
# The maximum number of allowed topics within a topic criteria, default value is 1000, | ||
# should be > 0, otherwise means no limit. | ||
# maxSubTopics = 1000 | ||
maxSubTopics = 1000 | ||
} | ||
|
||
# Disabled api list, it will work for http, rpc and pbft, both fullnode and soliditynode, | ||
|
@@ -363,9 +421,14 @@ rate.limiter = { | |
# }, | ||
] | ||
|
||
# global qps, default 50000 | ||
# global.qps = 50000 | ||
# IP-based global qps, default 10000 | ||
# global.ip.qps = 10000 | ||
} | ||
|
||
|
||
|
||
seed.node = { | ||
# List of the seed nodes | ||
# Seed nodes are stable full nodes | ||
|
@@ -375,17 +438,17 @@ seed.node = { | |
# "ip:port" | ||
# ] | ||
ip.list = [ | ||
"54.236.37.243:18888", | ||
"3.225.171.164:18888", | ||
"52.53.189.99:18888", | ||
"18.196.99.16:18888", | ||
"34.253.187.192:18888", | ||
"52.56.56.149:18888", | ||
"18.133.82.227:18888", | ||
"35.180.51.163:18888", | ||
"54.252.224.209:18888", | ||
"18.228.15.36:18888", | ||
"18.231.27.82:18888", | ||
"52.15.93.92:18888", | ||
"34.220.77.106:18888", | ||
"13.127.47.162:18888", | ||
"15.207.144.3:18888", | ||
"13.124.62.58:18888", | ||
"54.151.226.240:18888", | ||
"35.174.93.198:18888", | ||
|
@@ -404,7 +467,9 @@ seed.node = { | |
"54.82.161.39:18888", | ||
"54.179.207.68:18888", | ||
"18.142.82.44:18888", | ||
"18.163.230.203:18888" | ||
"18.163.230.203:18888", | ||
# "[2a05:d014:1f2f:2600:1b15:921:d60b:4c60]:18888", // use this if support ipv6 | ||
# "[2600:1f18:7260:f400:8947:ebf3:78a0:282b]:18888", // use this if support ipv6 | ||
] | ||
} | ||
|
||
|
@@ -595,7 +660,7 @@ block = { | |
proposalExpireTime = 259200000 // 3 day: 259200000(ms) | ||
} | ||
|
||
# Transaction reference block, default is "solid", configure to "head" may accur 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. | ||
|
@@ -611,7 +676,8 @@ vm = { | |
# Indicates whether the node stores featured internal transactions, such as freeze, vote and so on | ||
# 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. | ||
# saveCancelAllUnfreezeV2Details = false | ||
|
||
# In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged | ||
|
@@ -635,21 +701,32 @@ event.subscribe = { | |
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. | ||
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. Coding style guidelines are for *. java |
||
# 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 | ||
dbconfig = "" // dbname|username|password | ||
contractParse = true, | ||
// 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" | ||
|
@@ -660,9 +737,10 @@ event.subscribe = { | |
triggerName = "contractlog" | ||
enable = false | ||
topic = "contractlog" | ||
redundancy = false // if set true, contractevent will also be regarded as contractlog | ||
}, | ||
{ | ||
triggerName = "solidity" // solidity block event trigger, the value can't be modified | ||
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" | ||
}, | ||
|
@@ -675,6 +753,7 @@ event.subscribe = { | |
triggerName = "soliditylog" | ||
enable = false | ||
topic = "soliditylog" | ||
redundancy = false // if set true, solidityevent will also be regarded as soliditylog | ||
} | ||
] | ||
|
||
|
@@ -689,5 +768,5 @@ event.subscribe = { | |
"" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic. | ||
] | ||
} | ||
|
||
} | ||
|
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.
framework/src/main/resources/config.conf