From 45da3e17e2ada226d7c82db667d263f8e004cbfc Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 20 Apr 2015 12:29:02 +0200 Subject: core: added chain head reset to known block --- eth/handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eth/handler.go') diff --git a/eth/handler.go b/eth/handler.go index 5c0660d84..622f22132 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -36,6 +36,7 @@ pm.chainman.InsertChain(blocks) import ( "fmt" + "math" "math/big" "sync" @@ -326,7 +327,7 @@ func (pm *ProtocolManager) BroadcastBlock(hash common.Hash, block *types.Block) } // Broadcast block to peer set // XXX due to the current shit state of the network disable the limit - //peers = peers[:int(math.Sqrt(float64(len(peers))))] + peers = peers[:int(math.Sqrt(float64(len(peers))))] for _, peer := range peers { peer.sendNewBlock(block) } -- cgit v1.2.3