Browse Source

behaviour: return correct reason in MessageOutOfOrder (#3772)

pull/3775/head
Jay Namsayin 6 years ago
committed by Anton Kaliaev
parent
commit
94e0176ac2
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      CHANGELOG_PENDING.md
  2. +1
    -1
      behaviour/peer_behaviour.go

+ 2
- 0
CHANGELOG_PENDING.md View File

@ -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)

+ 1
- 1
behaviour/peer_behaviour.go View File

@ -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…
Cancel
Save