Correct error checking

pull/471/head
Rongjian Lan 6 years ago
parent 16adbcdb8e
commit 70cd1da9e9
  1. 2
      consensus/consensus_leader.go

@ -65,7 +65,7 @@ func (consensus *Consensus) WaitForNewBlock(blockChannel chan *types.Block, stop
newBlock.AddRandPreimage(binary.BigEndian.Uint32(pRnd)) newBlock.AddRandPreimage(binary.BigEndian.Uint32(pRnd))
} }
rnd, blockHash, err := consensus.GetNextRnd() rnd, blockHash, err := consensus.GetNextRnd()
if err != nil { if err == nil {
// Verify the randomness // Verify the randomness
_ = blockHash _ = blockHash
utils.GetLogInstance().Info("Adding randomness into new block", "rnd", rnd) utils.GetLogInstance().Info("Adding randomness into new block", "rnd", rnd)

Loading…
Cancel
Save