mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
use constant number instead of variable (#225)
This commit is contained in:
parent
bd46a94e74
commit
8fc4b8e52d
1 changed files with 8 additions and 8 deletions
|
|
@ -42,7 +42,7 @@ var (
|
||||||
MainnetV2Configs = map[uint64]*V2Config{
|
MainnetV2Configs = map[uint64]*V2Config{
|
||||||
Default: {
|
Default: {
|
||||||
SwitchRound: 0,
|
SwitchRound: 0,
|
||||||
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
|
CertThreshold: 73, // based on masternode is 108
|
||||||
TimeoutSyncThreshold: 3,
|
TimeoutSyncThreshold: 3,
|
||||||
TimeoutPeriod: 60,
|
TimeoutPeriod: 60,
|
||||||
WaitPeriod: 10,
|
WaitPeriod: 10,
|
||||||
|
|
@ -50,7 +50,7 @@ var (
|
||||||
},
|
},
|
||||||
9999999999: {
|
9999999999: {
|
||||||
SwitchRound: 9999999999,
|
SwitchRound: 9999999999,
|
||||||
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
|
CertThreshold: 73, // based on masternode is 108
|
||||||
TimeoutSyncThreshold: 3,
|
TimeoutSyncThreshold: 3,
|
||||||
TimeoutPeriod: 60,
|
TimeoutPeriod: 60,
|
||||||
WaitPeriod: 10,
|
WaitPeriod: 10,
|
||||||
|
|
@ -87,7 +87,7 @@ var (
|
||||||
DevnetV2Configs = map[uint64]*V2Config{
|
DevnetV2Configs = map[uint64]*V2Config{
|
||||||
Default: {
|
Default: {
|
||||||
SwitchRound: 0,
|
SwitchRound: 0,
|
||||||
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
|
CertThreshold: 73, // based on masternode is 108
|
||||||
TimeoutSyncThreshold: 5,
|
TimeoutSyncThreshold: 5,
|
||||||
TimeoutPeriod: 25,
|
TimeoutPeriod: 25,
|
||||||
WaitPeriod: 10,
|
WaitPeriod: 10,
|
||||||
|
|
@ -95,7 +95,7 @@ var (
|
||||||
},
|
},
|
||||||
151919: {
|
151919: {
|
||||||
SwitchRound: 151919,
|
SwitchRound: 151919,
|
||||||
CertThreshold: common.MaxMasternodesV2*1/2 + 1,
|
CertThreshold: 55, // based on masternode is 108
|
||||||
TimeoutSyncThreshold: 8,
|
TimeoutSyncThreshold: 8,
|
||||||
TimeoutPeriod: 50,
|
TimeoutPeriod: 50,
|
||||||
WaitPeriod: 5,
|
WaitPeriod: 5,
|
||||||
|
|
@ -103,7 +103,7 @@ var (
|
||||||
},
|
},
|
||||||
171000: {
|
171000: {
|
||||||
SwitchRound: 171000,
|
SwitchRound: 171000,
|
||||||
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
|
CertThreshold: 73, // based on masternode is 108
|
||||||
TimeoutSyncThreshold: 5,
|
TimeoutSyncThreshold: 5,
|
||||||
TimeoutPeriod: 25,
|
TimeoutPeriod: 25,
|
||||||
WaitPeriod: 10,
|
WaitPeriod: 10,
|
||||||
|
|
@ -111,7 +111,7 @@ var (
|
||||||
},
|
},
|
||||||
270000: {
|
270000: {
|
||||||
SwitchRound: 270000,
|
SwitchRound: 270000,
|
||||||
CertThreshold: common.MaxMasternodesV2*1/5 + 1,
|
CertThreshold: 21, // based on masternode is 108
|
||||||
TimeoutSyncThreshold: 3,
|
TimeoutSyncThreshold: 3,
|
||||||
TimeoutPeriod: 10,
|
TimeoutPeriod: 10,
|
||||||
WaitPeriod: 2,
|
WaitPeriod: 2,
|
||||||
|
|
@ -119,7 +119,7 @@ var (
|
||||||
},
|
},
|
||||||
300000: {
|
300000: {
|
||||||
SwitchRound: 300000,
|
SwitchRound: 300000,
|
||||||
CertThreshold: common.MaxMasternodesV2*4/5 + 1,
|
CertThreshold: 86, // based on masternode is 108
|
||||||
TimeoutSyncThreshold: 3,
|
TimeoutSyncThreshold: 3,
|
||||||
TimeoutPeriod: 60,
|
TimeoutPeriod: 60,
|
||||||
WaitPeriod: 20,
|
WaitPeriod: 20,
|
||||||
|
|
@ -127,7 +127,7 @@ var (
|
||||||
},
|
},
|
||||||
310000: {
|
310000: {
|
||||||
SwitchRound: 310000,
|
SwitchRound: 310000,
|
||||||
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
|
CertThreshold: 73, // based on masternode is 108
|
||||||
TimeoutSyncThreshold: 5,
|
TimeoutSyncThreshold: 5,
|
||||||
TimeoutPeriod: 25,
|
TimeoutPeriod: 25,
|
||||||
WaitPeriod: 10,
|
WaitPeriod: 10,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue