var name according to Go standards

This commit is contained in:
Anton Kaliaev 2018-07-10 16:13:43 +04:00
parent 2cd206e329
commit 60dd8067ae
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 2 deletions

View File

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