From 0d07861c68e148475a0b20c59b7fcd4b38ada851 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Wed, 25 Mar 2020 10:11:58 -0700 Subject: [PATCH] fix redundant var --- consensus/double_sign.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/double_sign.go b/consensus/double_sign.go index 811ef57a8..6e6cddf6b 100644 --- a/consensus/double_sign.go +++ b/consensus/double_sign.go @@ -105,13 +105,13 @@ func (consensus *Consensus) checkDoubleSign(recvMsg *FBFTMessage) { func (consensus *Consensus) couldThisBeADoubleSigner( recvMsg *FBFTMessage, ) bool { - num, hash, now := consensus.blockNum, recvMsg.BlockHash, consensus.blockNum + num, hash := consensus.blockNum, recvMsg.BlockHash suspicious := !consensus.FBFTLog.HasMatchingAnnounce(num, hash) || !consensus.FBFTLog.HasMatchingPrepared(num, hash) if suspicious { consensus.getLogger().Debug(). Str("message", recvMsg.String()). - Uint64("block-on-consensus", now). + Uint64("block-on-consensus", num). Msg("possible double signer") return true }