Skip to content

Commit

Permalink
use constant number instead of variable (ethereum#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-lai authored Feb 8, 2023
1 parent bd46a94 commit 8fc4b8e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ var (
MainnetV2Configs = map[uint64]*V2Config{
Default: {
SwitchRound: 0,
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
CertThreshold: 73, // based on masternode is 108
TimeoutSyncThreshold: 3,
TimeoutPeriod: 60,
WaitPeriod: 10,
MinePeriod: 10,
},
9999999999: {
SwitchRound: 9999999999,
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
CertThreshold: 73, // based on masternode is 108
TimeoutSyncThreshold: 3,
TimeoutPeriod: 60,
WaitPeriod: 10,
Expand Down Expand Up @@ -87,47 +87,47 @@ var (
DevnetV2Configs = map[uint64]*V2Config{
Default: {
SwitchRound: 0,
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
CertThreshold: 73, // based on masternode is 108
TimeoutSyncThreshold: 5,
TimeoutPeriod: 25,
WaitPeriod: 10,
MinePeriod: 10,
},
151919: {
SwitchRound: 151919,
CertThreshold: common.MaxMasternodesV2*1/2 + 1,
CertThreshold: 55, // based on masternode is 108
TimeoutSyncThreshold: 8,
TimeoutPeriod: 50,
WaitPeriod: 5,
MinePeriod: 20,
},
171000: {
SwitchRound: 171000,
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
CertThreshold: 73, // based on masternode is 108
TimeoutSyncThreshold: 5,
TimeoutPeriod: 25,
WaitPeriod: 10,
MinePeriod: 10,
},
270000: {
SwitchRound: 270000,
CertThreshold: common.MaxMasternodesV2*1/5 + 1,
CertThreshold: 21, // based on masternode is 108
TimeoutSyncThreshold: 3,
TimeoutPeriod: 10,
WaitPeriod: 2,
MinePeriod: 2,
},
300000: {
SwitchRound: 300000,
CertThreshold: common.MaxMasternodesV2*4/5 + 1,
CertThreshold: 86, // based on masternode is 108
TimeoutSyncThreshold: 3,
TimeoutPeriod: 60,
WaitPeriod: 20,
MinePeriod: 20,
},
310000: {
SwitchRound: 310000,
CertThreshold: common.MaxMasternodesV2*2/3 + 1,
CertThreshold: 73, // based on masternode is 108
TimeoutSyncThreshold: 5,
TimeoutPeriod: 25,
WaitPeriod: 10,
Expand Down

0 comments on commit 8fc4b8e

Please sign in to comment.