Merge pull request #1972 from rlan35/staking_pangaea

Reduce network stress
pull/1974/head master-20191205.1
Eugene Kim 5 years ago committed by GitHub
commit 263b0ee61c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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