|
|
@ -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) |
|
|
|