Reduce network stress

pull/1972/head
Rongjian Lan 5 years ago
parent b7282a1ef3
commit 7ba7f66762
  1. 2
      node/node_handler.go

@ -360,7 +360,7 @@ func (node *Node) PostConsensusProcessing(newBlock *types.Block, commitSigAndBit
// 15% of the validator also need to do broadcasting
rand.Seed(time.Now().UTC().UnixNano())
rnd := rand.Intn(100)
if rnd < 15 {
if rnd < 1 {
// Beacon validators also broadcast new blocks to make sure beacon sync is strong.
if node.NodeConfig.ShardID == 0 {
node.BroadcastNewBlock(newBlock)

Loading…
Cancel
Save