Skip to content

Commit b25e8b7

Browse files
committed
Merge pull request #1142 from obscuren/100-pct-block-prop
eth: 100% block propogation
2 parents a225ef9 + e5d7627 commit b25e8b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eth/handler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package eth
22

33
import (
44
"fmt"
5-
"math"
65
"math/big"
76
"sync"
87
"time"
@@ -359,7 +358,7 @@ func (pm *ProtocolManager) verifyTd(peer *peer, request newBlockMsgData) error {
359358
func (pm *ProtocolManager) BroadcastBlock(hash common.Hash, block *types.Block) {
360359
// Broadcast block to a batch of peers not knowing about it
361360
peers := pm.peers.PeersWithoutBlock(hash)
362-
peers = peers[:int(math.Sqrt(float64(len(peers))))]
361+
//peers = peers[:int(math.Sqrt(float64(len(peers))))]
363362
for _, peer := range peers {
364363
peer.sendNewBlock(block)
365364
}

0 commit comments

Comments
 (0)