From 06749e99973c663cd4e37d4aa319d51a888e9432 Mon Sep 17 00:00:00 2001 From: ashu Date: Sat, 1 Sep 2018 13:54:42 +0800 Subject: [PATCH 1/2] update config-test-net.conf --- src/main/resources/config-test-net.conf | 41 +++++++++++++++++++------ 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/src/main/resources/config-test-net.conf b/src/main/resources/config-test-net.conf index 09c4fb6930f..5653e282684 100644 --- a/src/main/resources/config-test-net.conf +++ b/src/main/resources/config-test-net.conf @@ -81,14 +81,23 @@ node { # Number of validate sign thread, default availableProcessors / 2 # validateSignThreadNum = 16 + connectFactor = 0.3 + activeConnectFactor = 0.1 + maxActiveNodes = 30 maxActiveNodesWithSameIp = 2 - minParticipationRate = 33 + minParticipationRate = 30 + + # check the peer data transfer ,disconnect factor + disconnectNumberFactor = 0.4 + maxConnectNumberFactor = 0.8 + receiveTcpMinDataLength = 2048 + isOpenFullTcpDisconnect = true p2p { - version = 20180622 # 11111: mainnet; 20180622: testnet + version = 0830 } active = [ @@ -319,17 +328,29 @@ genesis.block = { timestamp = "0" #2017-8-26 12:00:00 - parentHash = "0x9e524e0d6bfbbd25a9bd9cf5c5389f122e2bc2e66a29569d532739a1aa4376ae" + parentHash = "0x10000000001d13ab3ece497c7eb3ef3a0e17941f1c69c2e66088f461266ecac3" } -localwitness = [ -] - -#localwitnesskeystore = [ -# "src/main/resources/localwitnesskeystore.json" +#localwitness = [ #] +localwitnesskeystore = [ + "src/main/resources/localwitnesskeystore.json" +] + block = { - needSyncCheck = true # first node : false, other : true - maintenanceTimeInterval = 21600000 // 1 day: 86400000(ms), 6 hours: 21600000(ms) + needSyncCheck = true + maintenanceTimeInterval = 600000 + proposalExpireTime = 600000 // 3 day: 259200000(ms) +} + + +vm = { + supportConstant = true + minTimeRatio = 0.6 + maxTimeRatio = 5.0 +} + +committee = { + allowCreationOfContracts = 0 //mainnet:0 (reset by committee),test:1 } From dbcbed0ffe0ea2758160fbe77762f1ce814db147 Mon Sep 17 00:00:00 2001 From: ashu Date: Sat, 1 Sep 2018 13:57:30 +0800 Subject: [PATCH 2/2] update config --- src/main/resources/config-test-net.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/config-test-net.conf b/src/main/resources/config-test-net.conf index 5653e282684..d9a67c388c7 100644 --- a/src/main/resources/config-test-net.conf +++ b/src/main/resources/config-test-net.conf @@ -334,9 +334,9 @@ genesis.block = { #localwitness = [ #] -localwitnesskeystore = [ - "src/main/resources/localwitnesskeystore.json" -] +//localwitnesskeystore = [ +// "src/main/resources/localwitnesskeystore.json" +//] block = { needSyncCheck = true