Skip to content

Commit

Permalink
intro new timeout (#651)
Browse files Browse the repository at this point in the history
* intro new timeout

* correct comment
  • Loading branch information
liam-lai authored and 賴怡誠 committed Sep 30, 2024
1 parent 3fb1a01 commit 38c87b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eth/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ type peer struct {

knownVote mapset.Set // Set of BFT Vote known to be known by this peer
knownTimeout mapset.Set // Set of BFT timeout known to be known by this peer
knownSyncInfo mapset.Set // Set of BFT Sync Info known to be known by this peer`
knownSyncInfo mapset.Set // Set of BFT Sync Info known to be known by this peer
}

func newPeer(version int, p *p2p.Peer, rw p2p.MsgReadWriter) *peer {
Expand Down
8 changes: 8 additions & 0 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ var (
TimeoutPeriod: 30,
MinePeriod: 2,
},
2000: {
MaxMasternodes: 108,
SwitchRound: 2000,
CertThreshold: 0.667,
TimeoutSyncThreshold: 2,
TimeoutPeriod: 600,
MinePeriod: 2,
},
}

TestnetV2Configs = map[uint64]*V2Config{
Expand Down

0 comments on commit 38c87b4

Please sign in to comment.