Browse Source

cs: prettify logging of ignored votes (#3086)

Refs #3038
pull/3324/head
srmo 6 years ago
committed by Anton Kaliaev
parent
commit
616c3a4bae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consensus/state.go

+ 1
- 1
consensus/state.go View File

@ -1529,7 +1529,7 @@ func (cs *ConsensusState) addVote(vote *types.Vote, peerID p2p.ID) (added bool,
// Not necessarily a bad peer, but not favourable behaviour.
if vote.Height != cs.Height {
err = ErrVoteHeightMismatch
cs.Logger.Info("Vote ignored and not added", "voteHeight", vote.Height, "csHeight", cs.Height, "err", err)
cs.Logger.Info("Vote ignored and not added", "voteHeight", vote.Height, "csHeight", cs.Height, "peerID", peerID)
return
}


Loading…
Cancel
Save