Skip to content

Commit 06b2f8a

Browse files
author
wangzihe
committed
Change config.conf
1 parent e897e44 commit 06b2f8a

File tree

1 file changed

+21
-119
lines changed

1 file changed

+21
-119
lines changed

src/main/resources/config.conf

Lines changed: 21 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ net {
33
# type = testnet
44
}
55
enery.limit.block.num = 0
6-
76
storage {
87
# Directory for storing persistent data
98
db.version = 2,
10-
db.engine = "LEVELDB",
11-
db.sync = false,
129
db.directory = "database",
1310
index.directory = "index",
1411
transHistory.switch = "on",
@@ -50,32 +47,9 @@ storage {
5047
// },
5148
]
5249

53-
needToUpdateAsset = true
54-
55-
//dbsettings is needed when using rocksdb as the storage implement (db.version=2 and db.engine="ROCKSDB").
56-
//we'd strongly recommend that do not modify it unless you know every item's meaning clearly.
57-
dbSettings = {
58-
levelNumber = 7
59-
//compactThreads = 32
60-
blocksize = 64 // n * KB
61-
maxBytesForLevelBase = 256 // n * MB
62-
maxBytesForLevelMultiplier = 10
63-
level0FileNumCompactionTrigger = 4
64-
targetFileSizeBase = 256 // n * MB
65-
targetFileSizeMultiplier = 1
66-
}
6750

6851
needToUpdateAsset = true
6952

70-
//backup settings when using rocks db as the storage implement (db.version=2 and db.engine="ROCKSDB").
71-
//if you want to use the backup plugin, please confirm set the db.version=2 and db.engine="ROCKSDB" above.
72-
backup = {
73-
enable = false // indicate whether enable the backup plugin
74-
propPath = "prop.properties" // record which bak directory is valid
75-
bak1path = "bak1/database" // you must set two backup directories to prevent application halt unexpected(e.g. kill -9).
76-
bak2path = "bak2/database"
77-
frequency = 10000 // indicate backup db once every 10000 blocks processed.
78-
}
7953
}
8054

8155
node.discovery = {
@@ -153,8 +127,22 @@ node {
153127
# Sample entries:
154128
# "ip:port",
155129
# "ip:port"
130+
"47.94.239.172:18888",
131+
"39.105.89.183:18888",
132+
"39.107.248.113:18888",
133+
"101.201.69.207:18888",
134+
"39.105.81.23:18888",
135+
"39.105.231.194:18888",
136+
"60.205.215.34:18899",
137+
"39.105.123.181:18888",
138+
"39.105.28.73:18888"
139+
]
140+
141+
fastForward = [
142+
#"39.105.231.194:18888"
156143
]
157144

145+
158146
http {
159147
fullNodePort = 8098
160148
solidityPort = 8099
@@ -185,11 +173,6 @@ node {
185173
# maxHeaderListSize =
186174
}
187175

188-
# number of solidity thread in the FullNode.
189-
# If accessing solidity rpc and http interface timeout, could increase the number of threads,
190-
# The default value is the number of cpu cores of the machine.
191-
#solidity.threads = 8
192-
193176
# Limits the maximum percentage (default 75%) of producing block interval
194177
# to provide sufficient time to perform other operations e.g. broadcast block
195178
# blockProducedTimeOut = 75
@@ -293,65 +276,29 @@ genesis.block = {
293276
#parentHash = "0x0000000000000000000000000000000000000000000000000000000000000000"
294277
}
295278

296-
// Optional.The default is empty.
297-
// It is used when the witness account has set the witnessPermission.
298-
// When it is not empty, the localWitnessAccountAddress represents the address of the witness account,
299-
// and the localwitness is configured with the private key of the witnessPermissionAddress in the witness account.
300-
// When it is empty,the localwitness is configured with the private key of the witness account.
301-
302-
//localWitnessAccountAddress =
303-
304279
localwitness = [
305280
]
306281

307282
#localwitnesskeystore = [
308283
# "localwitnesskeystore.json"
309284
#]
310285

311-
event.subscribe = {
312-
path = "/data/workspace-event/eventplugin/build/plugins/plugin-kafka-1.0.0.zip"
313-
server = "59.110.157.188:9092"
314-
topics = [
315-
{
316-
triggerName = "block"
317-
enable = true
318-
topic = "block"
319-
},
320-
{
321-
triggerName = "transaction"
322-
enable = false
323-
topic = "transaction"
324-
},
325-
{
326-
triggerName = "contractevent"
327-
enable = true
328-
topic = "contractevent"
329-
},
330-
{
331-
triggerName = "contractlog"
332-
enable = true
333-
topic = "contractlog"
334-
}
335-
]
336-
}
337-
338-
339286
block = {
340287
needSyncCheck = false
341288
maintenanceTimeInterval = 300000
342289
proposalExpireTime = 300000 // 3 day: 259200000(ms)
343-
//checkFrozenTime = 0
290+
# checkFrozenTime = 0
344291
}
345292

293+
294+
295+
346296
# Transaction reference block, default is "head", configure to "solid" can avoid TaPos error
347297
# trx.reference.block = "head" // head;solid;
348298

349-
# This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000.
350-
# trx.expiration.timeInMilliseconds = 60000
351-
352299
vm = {
353300
supportConstant = true
354-
//checkFrozenTime = 0
301+
# checkFrozenTime = 0
355302

356303
}
357304
vm = {
@@ -368,50 +315,5 @@ committee = {
368315
#allowSameTokenName = 1
369316
#allowTvmTransferTrc10 = 1
370317
#allowMultiSign = 1 //mainnet:0 (reset by committee),test:1
371-
}
372-
373-
374-
log.level = {
375-
root = "INFO" // TRACE;DEBUG;INFO;WARN;ERROR
376-
}
377-
378-
event.subscribe = {
379-
path = "" // absolute path of plugin
380-
server = "" // target server address to receive event triggers
381-
dbconfig="" // dbname|username|password
382-
topics = [
383-
{
384-
triggerName = "block" // block trigger, the value can't be modified
385-
enable = false
386-
topic = "block" // plugin topic, the value could be modified
387-
},
388-
{
389-
triggerName = "transaction"
390-
enable = false
391-
topic = "transaction"
392-
},
393-
{
394-
triggerName = "contractevent"
395-
enable = true
396-
topic = "contractevent"
397-
},
398-
{
399-
triggerName = "contractlog"
400-
enable = true
401-
topic = "contractlog"
402-
}
403-
]
404-
405-
filter = {
406-
fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range
407-
toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range
408-
contractAddress = [
409-
"" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address.
410-
]
411-
412-
contractTopic = [
413-
"" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
414-
]
415-
}
416-
417-
}
318+
#allowDeferredTransaction = 1
319+
}

0 commit comments

Comments
 (0)