-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathconfig.conf
More file actions
209 lines (187 loc) · 7.24 KB
/
config.conf
File metadata and controls
209 lines (187 loc) · 7.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# Docker Single-Node Config
#
# Used by docker-compose.yml tron-node service.
# This config matches testng.conf endpoints and genesis accounts.
# All ports, genesis, committee flags are aligned with docs/config.conf.
net { type = mainnet }
storage {
balance.history.lookup = true
db.version = 2
db.sync = false
db.directory = "database"
index.directory = "index"
transHistory.switch = "on"
needToUpdateAsset = true
}
node.discovery = {
enable = true
persist = true
bind.ip = ""
external.ip = null
}
node.backup {
port = 10001
priority = 8
members = []
}
node {
trustNode = "127.0.0.1:50051"
fullNodeAllowShieldedTransaction = true
zenTokenId = 1000001
walletExtensionApi = true
openTransactionSort = true
listen.port = 18889
agreeNodeCount = 2
connection.timeout = 2
tcpNettyWorkThreadNum = 0
udpNettyWorkThreadNum = 1
connectFactor = 0.3
activeConnectFactor = 0.1
maxActiveNodes = 30
minParticipationRate = 0
disconnectNumberFactor = 0.4
maxConnectNumberFactor = 0.8
receiveTcpMinDataLength = 2048
isOpenFullTcpDisconnect = true
active = []
p2p { version = 708 }
http {
fullNodePort = 8090
solidityPort = 8091
PBFTPort = 8098
statisticsSRRewardSwitch = true
fullNodeEnable = true
solidityEnable = true
}
rpc {
port = 50051
solidityPort = 50061
PBFTPort = 50071
maxConnectionIdleInMillis = 60000
minEffectiveConnection = 0
reflectionService = true
}
jsonrpc {
httpFullNodeEnable = true
httpFullNodePort = 50545
httpSolidityEnable = true
httpSolidityPort = 50555
httpPBFTEnable = true
httpPBFTPort = 50565
}
disabledApi = [ "getstatsinfo" ]
}
seed.node = {
ip.list = [ "127.0.0.1:18889" ]
}
genesis.block = {
assets = [
{ accountName = "Devaccount"; accountType = "AssetIssue"; address = "TPwJS5eC5BPGyMGtYTHNhPTB89sUWjDSSu"; balance = "10000000000000000" },
{ accountName = "Zion"; accountType = "AssetIssue"; address = "TSRNrjmrAbDdrsoqZsv7FZUtAo13fwoCzv"; balance = "15000000000000000" },
{ accountName = "Sun"; accountType = "AssetIssue"; address = "TDQE4yb3E7dvDjouvu8u7GgSnMZbxAEumV"; balance = "10000000000000000" },
{ accountName = "testng001"; accountType = "AssetIssue"; address = "TKVyqEJaq8QRPQfWE8s8WPb5c92kanAdLo"; balance = "10000000000000000" },
{ accountName = "testng002"; accountType = "AssetIssue"; address = "THph9K2M2nLvkianrMGswRhz5hjSA9fuH7"; balance = "10000000000000000" },
{ accountName = "testng003"; accountType = "AssetIssue"; address = "TV75jZpdmP2juMe1dRwGrwpV6AMU6mr1EU"; balance = "10000000000000000" },
{ accountName = "testng004"; accountType = "AssetIssue"; address = "TNUpX2x6SH36Sv8i5FtENYZJFcBCFs8ds8"; balance = "10000000000000000" },
{ accountName = "testng005"; accountType = "AssetIssue"; address = "TCKu9t3U3dgU6YD3sWKcPD17BUpU6dohTH"; balance = "10000000000000000" },
{ accountName = "Blackhole"; accountType = "AssetIssue"; address = "THmtHi1Rzq4gSKYGEKv1DPkV7au6xU1AUB"; balance = "-9223372036854775808" }
]
witnesses = [
{ address: "TB4B1RMhoPeivkj4Hebm6tttHjRY9yQFes"; url = "http://Mercury.org"; voteCount = 105 },
{ address: "TT1smsmhxype64boboU8xTuNZVCKP1w6qT"; url = "http://Venus.org"; voteCount = 104 }
]
timestamp = "0"
parentHash = "0x0000000000000000000000000000000000000000000000000000000000000000"
}
# Single node runs both SRs (meets 2/3 consensus for block solidification)
localwitness = [
369F095838EB6EED45D4F6312AF962D5B9DE52927DA9F04174EE49F9AF54BC77,
291C233A5A7660FB148BAE07FCBCF885224F2DF453239BD983F859E8E5AA4602,
9FD8E129DE181EA44C6129F727A6871440169568ADE002943EAD0E7A16D8EDAC
]
block = {
needSyncCheck = false
maintenanceTimeInterval = 20000
proposalExpireTime = 20000
checkFrozenTime = 0
}
vm = {
supportConstant = true
minTimeRatio = 0.0
maxTimeRatio = 10.0
saveInternalTx = true
}
committee = {
allowCreationOfContracts = 1
allowDelegateResource = 1
allowSameTokenName = 1
allowTvmTransferTrc10 = 1
allowMultiSign = 1
allowAccountStateRoot = 1
allowTvmConstantinople = 1
allowShieldedTransaction = 1
allowTvmSolidity059 = 1
changedDelegation = 1
forbidTransferToContract = 1
allowPBFT = 1
allowShieldedTRC20Transaction = 1
allowTvmIstanbul = 1
allowTransactionFeePool = 1
allowOptimizeBlackHole = 1
allowBlackHoleOptimization = 1
allowTvmFreeze = 1
allowReceiptsMerkleRoot = 1
allowAssetOptimization = 1
allowTvmCompatibleEvm = 1
allowTvmLondon = 1
allowHigherLimitForMaxCpuTimeOfOneTx = 1
}
log.level = { root = "INFO" }
rate.limiter = {
http = [
{ component = "CreateShieldedTransactionServlet"; strategy = "GlobalPreemptibleAdapter"; paramString = "permit=1" },
{ component = "CreateShieldedTransactionWithoutSpendAuthSigServlet"; strategy = "GlobalPreemptibleAdapter"; paramString = "permit=1" },
{ component = "ListWitnessesServlet"; strategy = "GlobalPreemptibleAdapter"; paramString = "permit=1" },
{ component = "GetBlockByLatestNumOnSolidityServlet"; strategy = "IPQPSRateLimiterAdapter"; paramString = "qps=2" },
{ component = "GetBlockByNumOnSolidityServlet"; strategy = "QpsRateLimiterAdapter"; paramString = "qps=2" },
{ component = "ListWitnessesServlet"; strategy = "QpsRateLimiterAdapter"; paramString = "qps=2" },
{ component = "ListNodesServlet"; strategy = "IPQPSRateLimiterAdapter"; paramString = "qps=2" }
]
rpc = [
{ component = "protocol.Wallet/CreateShieldedTransaction"; strategy = "GlobalPreemptibleAdapter"; paramString = "permit=1" },
{ component = "protocol.Wallet/CreateShieldedTransactionWithoutSpendAuthSig"; strategy = "GlobalPreemptibleAdapter"; paramString = "permit=5" },
{ component = "protocol.Wallet/GetAccount"; strategy = "IPQPSRateLimiterAdapter"; paramString = "qps=3" },
{ component = "protocol.Wallet/ListNodes"; strategy = "IPQPSRateLimiterAdapter"; paramString = "qps=2" },
{ component = "protocol.WalletSolidity/GetBlockByNum2"; strategy = "IPQPSRateLimiterAdapter"; paramString = "qps=2" },
{ component = "protocol.WalletSolidity/GetBlockByNum"; strategy = "QpsRateLimiterAdapter"; paramString = "qps=2" },
{ component = "protocol.Wallet/ListWitnesses"; strategy = "QpsRateLimiterAdapter"; paramString = "qps=2" }
]
}
event.subscribe = {
native {
useNativeQueue = true
bindport = 50096
sendqueuelength = 1000
}
path = ""
server = ""
dbconfig = ""
topics = [
{ triggerName = "block"; enable = true; topic = "block" },
{ triggerName = "transaction"; enable = true; topic = "transaction"; ethCompatible = true; solidified = true },
{ triggerName = "contractevent"; enable = true; topic = "contractevent" },
{ triggerName = "contractlog"; enable = true; topic = "contractlog" },
{ triggerName = "solidity"; enable = true; topic = "solidity" },
{ triggerName = "solidityevent"; enable = true; topic = "solidityevent" },
{ triggerName = "soliditylog"; enable = true; topic = "soliditylog" }
]
filter = {
fromblock = ""
toblock = ""
contractAddress = [ "" ]
contractTopic = [
"4e2428acf9e70e881e61b1dabc7589a9c3800a9737a6a67e29f70a1397925b2c",
"50cb9fe53daa9737b786ab3646f04d0150dc50ef4e75f59509d83667ad5adb20"
]
}
}