Merge branch 'master' of github.com:harmony-one/harmony into verify_headers

pull/1539/head
Dennis Won 5 years ago
commit 0e6bc8a9df
  1. 4
      node/node_handler.go

@ -384,10 +384,10 @@ func (node *Node) PostConsensusProcessing(newBlock *types.Block, commitSigAndBit
// Print to normal log too
utils.GetLogInstance().Info("BINGO !!! Reached Consensus", "BlockNum", newBlock.NumberU64())
// 30% of the validator also need to do broadcasting
// 15% of the validator also need to do broadcasting
rand.Seed(time.Now().UTC().UnixNano())
rnd := rand.Intn(100)
if rnd < 30 {
if rnd < 15 {
node.BroadcastCXReceipts(newBlock, commitSigAndBitmap)
}
}

Loading…
Cancel
Save