var name according to Go standards
This commit is contained in:
parent
2cd206e329
commit
60dd8067ae
|
@ -139,8 +139,8 @@ func (memR *MempoolReactor) broadcastTxRoutine(peer p2p.Peer) {
|
|||
memTx := next.Value.(*mempoolTx)
|
||||
// make sure the peer is up to date
|
||||
height := memTx.Height()
|
||||
if peerState_i := peer.Get(types.PeerStateKey); peerState_i != nil {
|
||||
peerState := peerState_i.(PeerState)
|
||||
if peerStateI := peer.Get(types.PeerStateKey); peerStateI != nil {
|
||||
peerState := peerStateI.(PeerState)
|
||||
peerHeight := peerState.GetHeight()
|
||||
if peerHeight < height-1 { // Allow for a lag of 1 block
|
||||
time.Sleep(peerCatchupSleepIntervalMS * time.Millisecond)
|
||||
|
|
Loading…
Reference in New Issue