forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-localtest.conf
More file actions
291 lines (239 loc) · 7.43 KB
/
config-localtest.conf
File metadata and controls
291 lines (239 loc) · 7.43 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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
net {
type = mainnet
# type = testnet
}
storage {
# Directory for storing persistent data
db.directory = "database",
index.directory = "index",
# This configuration item is only for SolidityNode.
# Turn off the index is "off", else "on".
# Turning off the index will significantly improve the performance of the SolidityNode sync block.
# You can turn off the index if you don't use the two interfaces getTransactionsToThis and getTransactionsFromThis.
index.switch = "on"
# You can custom these 14 databases' configs:
# account, account-index, asset-issue, block, block-index,
# block_KDB, peers, properties, recent-block, trans,
# utxo, votes, witness, witness_schedule.
# Otherwise, db configs will remain defualt and data will be stored in
# the path of "output-directory" or which is set by "-d" ("--output-directory").
# Attention: name is a required field that must be set !!!
properties = [
// {
// name = "account",
// path = "storage_directory_test",
// createIfMissing = true,
// paranoidChecks = true,
// verifyChecksums = true,
// compressionType = 1, // compressed with snappy
// blockSize = 4096, // 4 KB = 4 * 1024 B
// writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
// cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
// maxOpenFiles = 100
// },
// {
// name = "account-index",
// path = "storage_directory_test",
// createIfMissing = true,
// paranoidChecks = true,
// verifyChecksums = true,
// compressionType = 1, // compressed with snappy
// blockSize = 4096, // 4 KB = 4 * 1024 B
// writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
// cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B
// maxOpenFiles = 100
// },
]
checkpoint.version = 2
checkpoint.sync = true
}
node.discovery = {
enable = true
persist = true
external.ip = null
}
# custom stop condition
#node.shutdown = {
# BlockTime = "54 59 08 * * ?" # if block header time in persistent db matched.
# BlockHeight = 33350800 # if block header height in persistent db matched.
# BlockCount = 12 # block sync count after node start.
#}
node.backup {
port = 10001
priority = 8
members = [
]
}
node {
# trust node for solidity node
# trustNode = "ip:port"
trustNode = "127.0.0.1:50051"
# expose extension api to public or not
walletExtensionApi = true
listen.port = 6666
connection.timeout = 2
tcpNettyWorkThreadNum = 0
udpNettyWorkThreadNum = 1
# Number of validate sign thread, default availableProcessors / 2
# validateSignThreadNum = 16
maxConnectionsWithSameIp = 10
minParticipationRate = 0
# check the peer data transfer ,disconnect factor
isOpenFullTcpDisconnect = true
inactiveThreshold = 600 //seconds
p2p {
version = 333 # 11111: mainnet; 20180622: testnet
}
active = [
# Active establish connection in any case
# Sample entries:
# "ip:port",
# "ip:port"
]
passive = [
# Passive accept connection in any case
# Sample entries:
# "ip:port",
# "ip:port"
]
http {
fullNodePort = 8090
solidityPort = 8091
}
rpc {
port = 50051
# default value is 50061
# solidityPort = 50061
# Number of gRPC thread, default availableProcessors / 2
# thread = 16
# The maximum number of concurrent calls permitted for each incoming connection
# maxConcurrentCallsPerConnection =
# The HTTP/2 flow control window, default 1MB
# flowControlWindow =
# Connection being idle for longer than which will be gracefully terminated
maxConnectionIdleInMillis = 60000
minEffectiveConnection = 0
# Connection lasting longer than which will be gracefully terminated
# maxConnectionAgeInMillis =
# The maximum message size allowed to be received on the server, default 4MB
# maxMessageSize =
# The maximum size of header list allowed to be received, default 8192
# maxHeaderListSize =
# The switch of the reflection service, effective for all gRPC services
reflectionService = false
}
jsonrpc {
# httpFullNodeEnable = true
# httpFullNodePort = 8545
# httpSolidityEnable = true
# httpSolidityPort = 8555
# httpPBFTEnable = true
# httpPBFTPort = 8565
# maxBlockRange = 5000
# maxSubTopics = 1000
# maxBlockFilterNum = 30000
}
}
seed.node = {
# List of the seed nodes
# Seed nodes are stable full nodes
# example:
# ip.list = [
# "ip:port",
# "ip:port"
# ]
ip.list = [
"127.0.0.1:6666",
// "127.0.0.1:7777",
// "127.0.0.1:8888",
// "127.0.0.1:9999",
]
}
genesis.block = {
# Reserve balance
assets = [
# the account of foundation.
{
accountName = "Zion"
accountType = "AssetIssue"
address = "TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW"
balance = "25000000000000000"
},
# the account of payment
{
accountName = "Sun"
accountType = "AssetIssue"
address = "TGehVcNhud84JDCGrNHKVz9jEAVKUpbuiv"
balance = "10000000000000000"
},
# the account of coin burn
{
accountName = "Blackhole"
accountType = "AssetIssue"
address = "THKrowiEfCe8evdbaBzDDvQjM5DGeB3s3F"
balance = "-9223372036854775808"
}
]
witnesses = [
{
address: TN3zfjYUmMFK3ZsHSsrdJoNRtGkQmZLBLz
url = "http://Test.org",
voteCount = 106
},
// {
// address: TPrLL5ckUdMaPNgJYmGv23qtYjBE34aBf8
// url = "http://Mercury.org",
// voteCount = 105
// },
// {
// address: TEZBh76rouEQpB2zqYVopbRXGx7RfyWorT
// #address: 27TfVERREG3FeWMHEAQ95tWHG4sb3ANn3Qe
// url = "http://Venus.org",
// voteCount = 104
// },
// {
// address: TN27wbfCLEN1gP2PZAxHgU3QZrntsLyxdj
// #address: 27b8RUuyZnNPFNZGct2bZkNu9MnGWNAdH3Z
// url = "http://Earth.org",
// voteCount = 103
// },
]
timestamp = "0" #2017-8-26 12:00:00
parentHash = "0x0000000000000000000000000000000000000000000000000000000000000000"
}
// Optional.The default is empty.
// It is used when the witness account has set the witnessPermission.
// When it is not empty, the localWitnessAccountAddress represents the address of the witness account,
// and the localwitness is configured with the private key of the witnessPermissionAddress in the witness account.
// When it is empty,the localwitness is configured with the private key of the witness account.
//localWitnessAccountAddress = TN3zfjYUmMFK3ZsHSsrdJoNRtGkQmZLBLz
localwitness = [
]
#localwitnesskeystore = [
# "localwitnesskeystore.json"
#]
block = {
needSyncCheck = false
maintenanceTimeInterval = 21600000
proposalExpireTime = 259200000 // 3 day: 259200000(ms)
}
vm = {
supportConstant = true
minTimeRatio = 0.0
maxTimeRatio = 5.0
}
committee = {
allowCreationOfContracts = 1 //mainnet:0 (reset by committee),test:1
allowMultiSign = 1 //mainnet:0 (reset by committee),test:1
allowSameTokenName = 1
allowTvmTransferTrc10 = 1
allowTvmConstantinople = 1
allowTvmSolidity059 = 1
allowMarketTransaction = 1
allowTransactionFeePool = 1
}
log.level = {
root = "INFO" // TRACE;DEBUG;INFO;WARN;ERROR
allowCreationOfContracts = 1 //mainnet:0 (reset by committee),test:1
allowMultiSign = 1 //mainnet:0 (reset by committee),test:1
}