diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-28 23:01:44 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-28 23:01:44 +0800 |
commit | e5d7627427262f7df0906233aecbcbb37c8daeed (patch) | |
tree | 3d5c5c504096101c3f7ef4ede669ea3c882030ce | |
parent | a225ef9c1346a2c3122304df3e0df2af5ced10bf (diff) | |
download | dexon-e5d7627427262f7df0906233aecbcbb37c8daeed.tar dexon-e5d7627427262f7df0906233aecbcbb37c8daeed.tar.gz dexon-e5d7627427262f7df0906233aecbcbb37c8daeed.tar.bz2 dexon-e5d7627427262f7df0906233aecbcbb37c8daeed.tar.lz dexon-e5d7627427262f7df0906233aecbcbb37c8daeed.tar.xz dexon-e5d7627427262f7df0906233aecbcbb37c8daeed.tar.zst dexon-e5d7627427262f7df0906233aecbcbb37c8daeed.zip |
eth: 100% block propogation
-rw-r--r-- | eth/handler.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/handler.go b/eth/handler.go index 8092a5f71..aea33452c 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -2,7 +2,6 @@ package eth import ( "fmt" - "math" "math/big" "sync" "time" @@ -359,7 +358,7 @@ func (pm *ProtocolManager) verifyTd(peer *peer, request newBlockMsgData) error { func (pm *ProtocolManager) BroadcastBlock(hash common.Hash, block *types.Block) { // Broadcast block to a batch of peers not knowing about it peers := pm.peers.PeersWithoutBlock(hash) - peers = peers[:int(math.Sqrt(float64(len(peers))))] + //peers = peers[:int(math.Sqrt(float64(len(peers))))] for _, peer := range peers { peer.sendNewBlock(block) } |