diff --git a/mempool/reactor.go b/mempool/reactor.go index 8d10262a..bc869390 100644 --- a/mempool/reactor.go +++ b/mempool/reactor.go @@ -135,8 +135,12 @@ func (memR *MempoolReactor) broadcastTxRoutine(tickerChan <-chan time.Time, newB } // make sure the peer is up to date - peerState := peer.Get(types.PeerStateKey).(PeerState) - if peerState.GetHeight() < height { + if peerState_i := peer.Get(types.PeerStateKey); peerState_i != nil { + peerState := peerState_i.(PeerState) + if peerState.GetHeight() < height { + continue + } + } else { continue }