mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 14:22:16 +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:
|
||||
- [p2p] \#3338 Prevent "sent next PEX request too soon" errors by not calling
|
||||
ensurePeers outside of ensurePeersRoutine
|
||||
- [behaviour] Return correct reason in MessageOutOfOrder (@jim380)
|
||||
|
||||
|
@ -27,7 +27,7 @@ type messageOutOfOrder struct {
|
||||
|
||||
// MessageOutOfOrder returns a messagOutOfOrder 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user