Repository navigation
Expand file tree
/
Copy pathconfig-test-index.conf
More file actions
157 lines (122 loc) · 3.52 KB
/
Copy pathconfig-test-index.conf
File metadata and controls
157 lines (122 loc) · 3.52 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
net {
// type = mainnet
type = testnet
}
storage {
# Directory for storing persistent data
db.directory = "database",
index.directory = "index",
# 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
},
]
needToUpdateAsset = false
}
node.discovery = {
enable = true
persist = true
bind.ip = ""
external.ip = null
}
node {
listen.port = 18888
connection.timeout = 2
active = [
# Sample entries:
# { url = "enode://<hex nodeID>@hostname.com:30303" }
# {
# ip = hostname.com
# port = 30303
# nodeId = e437a4836b77ad9d9ffe73ee782ef2614e6d8370fcf62191a6e488276e23717147073a7ce0b444d485fff5a0c34c4577251a7a990cf80d8542e21b95aa8c5e6c
# }
]
maxActiveNodes = 30
p2p {
version = 43 # 43: testnet; 101: debug
}
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 =
}
}
sync {
node.count = 30
}
seed.node = {
# List of the seed nodes
# Seed nodes are stable full nodes
# example:
# ip.list = [
# "ip:port",
# "ip:port"
# ]
ip.list = [
"47.254.16.55:18888",
"47.254.18.49:18888",
"18.188.111.53:18888",
"54.219.41.56:18888",
"35.169.113.187:18888",
"34.214.241.188:18888",
"47.254.146.147:18888",
"47.254.144.25:18888",
"47.91.246.252:18888",
"47.91.216.69:18888",
"39.106.220.120:18888"
]
}
genesis.block = {
# Reserve balance
assets = [
]
witnesses = [
]
timestamp = "0" #2017-8-26 12:00:00
parentHash = "0x0000000000000000000000000000000000000000000000000000000000000000"
}
localwitness = [
]
block = {
needSyncCheck = true # first node : false, other : true
}