From 29aa946308060a4bb3fc4b5b0f5f279b38dc752c Mon Sep 17 00:00:00 2001 From: chao Date: Mon, 9 Sep 2019 10:52:15 -0700 Subject: [PATCH] lower down to 15% of ratio to receipts broadcast --- node/node_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/node_handler.go b/node/node_handler.go index 3387881ba..233d5fd08 100644 --- a/node/node_handler.go +++ b/node/node_handler.go @@ -386,10 +386,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) } }