mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 22:32:15 +00:00
behaviour: return correct reason in MessageOutOfOrder (#3772)
This commit is contained in:
parent
f76684a05c
commit
94e0176ac2
@ -37,3 +37,5 @@ program](https://hackerone.com/tendermint).
|
|||||||
### BUG FIXES:
|
### BUG FIXES:
|
||||||
- [p2p] \#3338 Prevent "sent next PEX request too soon" errors by not calling
|
- [p2p] \#3338 Prevent "sent next PEX request too soon" errors by not calling
|
||||||
ensurePeers outside of ensurePeersRoutine
|
ensurePeers outside of ensurePeersRoutine
|
||||||
|
- [behaviour] Return correct reason in MessageOutOfOrder (@jim380)
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ type messageOutOfOrder struct {
|
|||||||
|
|
||||||
// MessageOutOfOrder returns a messagOutOfOrder PeerBehaviour.
|
// MessageOutOfOrder returns a messagOutOfOrder PeerBehaviour.
|
||||||
func MessageOutOfOrder(peerID p2p.ID, explanation string) PeerBehaviour {
|
func MessageOutOfOrder(peerID p2p.ID, explanation string) PeerBehaviour {
|
||||||
return PeerBehaviour{peerID: peerID, reason: badMessage{explanation}}
|
return PeerBehaviour{peerID: peerID, reason: messageOutOfOrder{explanation}}
|
||||||
}
|
}
|
||||||
|
|
||||||
type consensusVote struct {
|
type consensusVote struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user