From e92fdc7b33af440c4097f7b5c5880cb73ea42252 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Thu, 21 Feb 2019 20:30:37 -0800 Subject: [PATCH] reduce the number of message Signed-off-by: Leo Chen --- consensus/consensus.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/consensus.go b/consensus/consensus.go index ad9a6e009..f02e5e8d6 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -258,7 +258,7 @@ func (consensus *Consensus) checkConsensusMessage(message *msg_pb.Message, publi consensusID := consensusMsg.ConsensusId blockHash := consensusMsg.BlockHash - utils.GetLogInstance().Warn("checkConsensusMessage", "publicKey", publicKey) + utils.GetLogInstance().Warn("checkConsensusMessage", "consensusID", consensusID, "blockHash", blockHash) // Verify message signature err := verifyMessageSig(publicKey, message) if err != nil { @@ -309,7 +309,7 @@ func verifyMessageSig(signerPubKey *bls.PublicKey, message *msg_pb.Message) erro return err } msgHash := sha256.Sum256(messageBytes) - utils.GetLogInstance().Debug("verifyMessageSig", "signerPubKey", signerPubKey, "msgHash", msgHash) + utils.GetLogInstance().Debug("verifyMessageSig") if !msgSig.VerifyHash(signerPubKey, msgHash[:]) { return errors.New("failed to verify the signature") }