From 2b8d3956ad94e08d170483bfb9807b43bc755443 Mon Sep 17 00:00:00 2001 From: Callum Waters Date: Thu, 18 Aug 2022 10:11:41 +0200 Subject: [PATCH] lint --- evidence/pool.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/evidence/pool.go b/evidence/pool.go index 6489dc758..f2c514694 100644 --- a/evidence/pool.go +++ b/evidence/pool.go @@ -464,8 +464,9 @@ func (evpool *Pool) processConsensusBuffer(state sm.State) { // Check the height of the conflicting votes and fetch the corresponding time and validator set // to produce the valid evidence var ( - dve *types.DuplicateVoteEvidence - err error + dve *types.DuplicateVoteEvidence + valSet *types.ValidatorSet + err error ) switch { case voteSet.VoteA.Height == state.LastBlockHeight: @@ -477,7 +478,7 @@ func (evpool *Pool) processConsensusBuffer(state sm.State) { ) case voteSet.VoteA.Height < state.LastBlockHeight: - valSet, err := evpool.stateDB.LoadValidators(voteSet.VoteA.Height) + valSet, err = evpool.stateDB.LoadValidators(voteSet.VoteA.Height) if err != nil { evpool.logger.Error("failed to load validator set for conflicting votes", "height", voteSet.VoteA.Height, "err", err,