Fix nil pointer error

pull/2582/head
Rongjian Lan 5 years ago
parent 2cbb3fb2e1
commit 1b380383fa
  1. 3
      consensus/checks.go

@ -197,9 +197,6 @@ func (consensus *Consensus) onPreparedSanityChecks(
func (consensus *Consensus) viewChangeSanityCheck(msg *msg_pb.Message) bool { func (consensus *Consensus) viewChangeSanityCheck(msg *msg_pb.Message) bool {
consensus.getLogger().Debug(). consensus.getLogger().Debug().
Uint64("blockNum", msg.GetConsensus().BlockNum).
Uint64("viewID", msg.GetConsensus().ViewId).
Str("msgType", msg.Type.String()).
Msg("[viewChangeSanityCheck] Checking new message") Msg("[viewChangeSanityCheck] Checking new message")
senderKey, err := consensus.verifyViewChangeSenderKey(msg) senderKey, err := consensus.verifyViewChangeSenderKey(msg)
if err != nil { if err != nil {

Loading…
Cancel
Save