|
|
@ -360,7 +360,7 @@ func (node *Node) PostConsensusProcessing(newBlock *types.Block, commitSigAndBit |
|
|
|
// 15% 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 < 15 { |
|
|
|
if rnd < 1 { |
|
|
|
// Beacon validators also broadcast new blocks to make sure beacon sync is strong.
|
|
|
|
// Beacon validators also broadcast new blocks to make sure beacon sync is strong.
|
|
|
|
if node.NodeConfig.ShardID == 0 { |
|
|
|
if node.NodeConfig.ShardID == 0 { |
|
|
|
node.BroadcastNewBlock(newBlock) |
|
|
|
node.BroadcastNewBlock(newBlock) |
|
|
|