forked from tronprotocol/tron-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_net_config.conf
440 lines (390 loc) · 10.4 KB
/
test_net_config.conf
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
net {
# type = mainnet
type = testnet
}
enery.limit.block.num = 0
storage {
# Directory for storing persistent data
db.version = 2,
db.engine = "LEVELDB",
db.sync = false,
db.directory = "database",
index.directory = "index",
transHistory.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
// },
]
}
node.discovery = {
enable = true
persist = true
bind.ip = ""
external.ip = null
}
node.backup {
port = 10001
priority = 8
members = [
]
}
node {
# trust node for solidity node
# trustNode = "ip:port"
trustNode = "127.0.0.1:50051"
zenTokenId = 1000003
fullNodeAllowShieldedTransaction = true
# expose extension api to public or not
walletExtensionApi = true
listen.port = 18888
connection.timeout = 2
tcpNettyWorkThreadNum = 0
udpNettyWorkThreadNum = 1
# Number of validate sign thread, default availableProcessors / 2
# validateSignThreadNum = 16
maxActiveNodes = 30
maxActiveNodesWithSameIp = 2
minParticipationRate = 0
maxConnectNumberFactor = 1
receiveTcpMinDataLength = 512
p2p {
version = 09251646
}
active = [
# Active establish connection in any case
# Sample entries:
# "ip:port",
# "ip:port"
"47.252.81.126:18888",
"47.252.80.163:18888",
"47.252.84.148:18888",
"47.252.80.45:18888"
]
passive = [
# Passive accept connection in any case
# Sample entries:
# "ip:port",
# "ip:port"
]
# fastForward = [
# "47.75.38.145:18888"
# ]
http {
fullNodePort = 8090
solidityPort = 8091
}
rpc {
port = 50051
# 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
# 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 =
}
}
seed.node = {
# List of the seed nodes
# Seed nodes are stable full nodes
# example:
# ip.list = [
# "ip:port",
# "ip:port"
# ]
ip.list = [
"47.252.81.126:18888",
"47.252.80.163:18888",
"47.252.84.148:18888",
"47.252.80.45:18888",
"47.252.86.9:18888",
"47.252.81.42:18888",
"47.252.84.110:18888",
"47.252.81.102:18888",
"47.252.80.220:18888",
"47.252.80.96:18888",
"47.252.84.22:18888",
"47.252.81.33:18888",
"47.252.86.18:18888",
"47.252.84.177:18888",
"47.252.80.3:18888",
"47.252.81.135:18888",
"47.252.81.153:18888",
"47.252.87.234:18888",
"47.252.85.150:18888",
"47.252.81.120:18888",
"47.252.87.12:18888",
"47.252.84.142:18888",
"47.252.84.58:18888",
"47.252.84.249:18888",
"47.252.84.209:18888",
"47.252.84.59:18888",
"47.252.85.102:18888"
]
}
genesis.block = {
# Reserve balance
assets = [
{
accountName = "Zion"
accountType = "AssetIssue"
address = "TNNqZuYhMfQvooC4kJwTsMJEQVU3vWGa5u"
balance = "95000000000000000"
},
{
accountName = "Sun"
accountType = "AssetIssue"
address = "TWsm8HtU2A5eEzoT8ev8yaoFjHsXLLrckb"
balance = "5000000000000000"
},
{
accountName = "Blackhole"
accountType = "AssetIssue"
address = "TSJD5rdu6wZXP7F2m3a3tn8Co3JcMjtBip"
balance = "-9223372036854775808"
}
]
witnesses = [
{
address: TVdyt1s88BdiCjKt6K2YuoSmpWScZYK1QF,
url = "http://Alioth.com",
voteCount = 100027
},
{
address: TCNVmGtkfknHpKSZXepZDXRowHF7kosxcv,
url = "http://Aries.com",
voteCount = 100026
},
{
address: TAbzgkG8p3yF5aywKVgq9AaAu6hvF2JrVC,
url = "http://Cancer.com",
voteCount = 100025
},
{
address: TMmmvwvkBPBv3Gkw9cGKbZ8PLznYkTu3ep,
url = "http://Capricorn.com",
voteCount = 100024
},
{
address: TBJHZu4Sm86aWHtt6VF6KQSzot8vKTuTKx,
url = "http://Cassiopeia.com",
voteCount = 100023
},
{
address: TLvCstA93piBhpdvMggJ9r5b793b6rqdGd,
url = "http://Crux.com",
voteCount = 100022
},
{
address: TEf2ADumcubtg9NeNi7bNP14KfvYxKzTDu,
url = "http://Delphinus.com",
voteCount = 100021
},
{
address: TTqqbNxnqniyeCFi4aYwQQFHtuMwiBLARo,
url = "http://Dorado.com",
voteCount = 100020
},
{
address: TWwJwoqAYvUVjmp5odhwZYgKekBqL3Mbcf,
url = "http://Dubhe.com",
voteCount = 100019
},
{
address: TCPKsDZCJDzC83KWcAnHo9b46DN9o4s48y,
url = "http://Eridanus.com",
voteCount = 100018
},
{
address: TJnd8wF5ScEvuYq4WnJUyGbg6iS7ibnWrY,
url = "http://Gemini.com",
voteCount = 100017
},
{
address: TTZDB64rNpdw8rpEKko5FhB7BMUf5y4JMT,
url = "http://Hercules.com",
voteCount = 100016
},
{
address: TVWapNccbdFDqdHjFGnJ8ePancR6HjSned,
url = "http://Leo.com",
voteCount = 100015
},
{
address: TUVdiR6bYsuDNB5HWPLyK3ueY6225n5AdJ,
url = "http://Libra.com",
voteCount = 100014
},
{
address: TRBQFNJrJJzzgqfnbP9WvAjWd2oCNyqanC,
url = "http://Lupus.com",
voteCount = 100013
},
{
address: TBSq7zAhyEyVf96tbQmh6SwBGRiQXJf9sx,
url = "http://Lyra.com",
voteCount = 100012
},
{
address: TFZhwKPxqadgLGSwkiD1JeFJgfSMn2BD75,
url = "http://Monoceros.com",
voteCount = 100011
},
{
address: TZ6PqKSodEW7yQNYSDS8WoDo8t3SfACV3V,
url = "http://Norma.com",
voteCount = 100010
},
{
address: TSiyqwmcqsDBXQmWPZhC4Y5zncECMN61Li,
url = "http://Orion.com",
voteCount = 100009
},
{
address: TVnWr8bm3b2gDrJDBTfWXuPXiT1cvZUGan,
url = "http://Pavo.com",
voteCount = 100008
},
{
address: TNR2BDkX53rFCvkSg89nK7nfeC6hLN7B5o,
url = "http://Perseus.com",
voteCount = 100007
},
{
address: TVw2k1pD3n4ErWnr4uWmjVwsdai8vT5wyn,
url = "http://Phecda.com",
voteCount = 100006
},
{
address: THtcGdFXoGWNd9PDrhCradfvcdsQAoNVAC,
url = "http://Phoenix.com",
voteCount = 100005
},
{
address: TEZ31xxrECtLmsGvQFnh2quQVxKFoHxqqu,
url = "http://Pyxis.com",
voteCount = 100004
},
{
address: TA6ztifHZSkQ5F6KMe73rYRgQ5fBKLPomV,
url = "http://Scutum.com",
voteCount = 100003
},
{
address: TXuLKjf8J8aCKgDgA5uczwn1yQNYVPLocY,
url = "http://Taurus.com",
voteCount = 100002
},
{
address: TAihbgDWBK1QTS5gsk7evWDy2nhpkmkGZJ,
url = "http://Volans.com",
voteCount = 100001
}
]
timestamp = "0" #2017-8-26 12:00:00
parentHash = "0x30000000001d13ab3eced28c7eb8ef3a0a1a941f1c60e2e66088f461266ecab5"
}
#localwitness = [
#]
localwitnesskeystore = [
"src/main/resources/localwitnesskeystore.json"
]
block = {
needSyncCheck = true
maintenanceTimeInterval = 600000
proposalExpireTime = 600000 // 3 day: 259200000(ms)
}
trx.reference.block = "solid" //head;solid
vm = {
supportConstant = true
minTimeRatio = 0.0
maxTimeRatio = 5.0
saveInternalTx = false
}
committee = {
allowCreationOfContracts = 0 //mainnet:0 (reset by committee),test:1
}
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
}
path = "" // absolute path of plugin
server = "" // target server address to receive event triggers
dbconfig = "" // dbname|username|password
contractParse = true,
topics = [
{
triggerName = "block" // block trigger, the value can't be modified
enable = false
topic = "block" // plugin topic, the value could be modified
},
{
triggerName = "transaction"
enable = false
topic = "transaction"
},
{
triggerName = "contractevent"
enable = false
topic = "contractevent"
},
{
triggerName = "contractlog"
enable = false
topic = "contractlog"
},
{
triggerName = "solidity" // solidity block event trigger, the value can't be modified
enable = true // the default value is true
topic = "solidity"
}
]
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.
]
}
}