Skip to content

Commit 450a63f

Browse files
authored
intro new timeout (XinFinOrg#651)
* intro new timeout * correct comment
1 parent 6493744 commit 450a63f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

eth/peer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type peer struct {
7777

7878
knownVote mapset.Set // Set of BFT Vote known to be known by this peer
7979
knownTimeout mapset.Set // Set of BFT timeout known to be known by this peer
80-
knownSyncInfo mapset.Set // Set of BFT Sync Info known to be known by this peer`
80+
knownSyncInfo mapset.Set // Set of BFT Sync Info known to be known by this peer
8181
}
8282

8383
func newPeer(version int, p *p2p.Peer, rw p2p.MsgReadWriter) *peer {

params/config.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ var (
4848
TimeoutPeriod: 30,
4949
MinePeriod: 2,
5050
},
51+
2000: {
52+
MaxMasternodes: 108,
53+
SwitchRound: 2000,
54+
CertThreshold: 0.667,
55+
TimeoutSyncThreshold: 2,
56+
TimeoutPeriod: 600,
57+
MinePeriod: 2,
58+
},
5159
}
5260

5361
TestnetV2Configs = map[uint64]*V2Config{

0 commit comments

Comments
 (0)