mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 06:01:21 +00:00
fix mempool PeerState nil conversion bug
This commit is contained in:
parent
5102f7a9cb
commit
82c65e423b
@ -135,8 +135,12 @@ func (memR *MempoolReactor) broadcastTxRoutine(tickerChan <-chan time.Time, newB
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make sure the peer is up to date
|
// make sure the peer is up to date
|
||||||
peerState := peer.Get(types.PeerStateKey).(PeerState)
|
if peerState_i := peer.Get(types.PeerStateKey); peerState_i != nil {
|
||||||
if peerState.GetHeight() < height {
|
peerState := peerState_i.(PeerState)
|
||||||
|
if peerState.GetHeight() < height {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
} else {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user