|
|
@ -386,10 +386,10 @@ func (node *Node) PostConsensusProcessing(newBlock *types.Block, commitSigAndBit |
|
|
|
// Print to normal log too
|
|
|
|
// Print to normal log too
|
|
|
|
utils.GetLogInstance().Info("BINGO !!! Reached Consensus", "BlockNum", newBlock.NumberU64()) |
|
|
|
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()) |
|
|
|
rand.Seed(time.Now().UTC().UnixNano()) |
|
|
|
rnd := rand.Intn(100) |
|
|
|
rnd := rand.Intn(100) |
|
|
|
if rnd < 30 { |
|
|
|
if rnd < 15 { |
|
|
|
node.BroadcastCXReceipts(newBlock, commitSigAndBitmap) |
|
|
|
node.BroadcastCXReceipts(newBlock, commitSigAndBitmap) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|