aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-09 20:37:15 +0800
committerobscuren <geffobscura@gmail.com>2015-01-09 20:37:15 +0800
commita35be3a12a874358e4cc7ed8ab0db0e51b509953 (patch)
tree39948c5f33dd257f5fae042a3b678f81346da55d /eth/protocol.go
parentf9b0d1a8e738a207e6101b27b667ea390def9f69 (diff)
parentb3161f5803fdab9531c611659b7827ff1a2699dd (diff)
downloaddexon-a35be3a12a874358e4cc7ed8ab0db0e51b509953.tar
dexon-a35be3a12a874358e4cc7ed8ab0db0e51b509953.tar.gz
dexon-a35be3a12a874358e4cc7ed8ab0db0e51b509953.tar.bz2
dexon-a35be3a12a874358e4cc7ed8ab0db0e51b509953.tar.lz
dexon-a35be3a12a874358e4cc7ed8ab0db0e51b509953.tar.xz
dexon-a35be3a12a874358e4cc7ed8ab0db0e51b509953.tar.zst
dexon-a35be3a12a874358e4cc7ed8ab0db0e51b509953.zip
Merge branch 'develop' of https://github.com/ethersphere/go-ethereum into ethersphere-develop
Diffstat (limited to 'eth/protocol.go')
-rw-r--r--eth/protocol.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/eth/protocol.go b/eth/protocol.go
index 736bcd94b..c9a5dea8d 100644
--- a/eth/protocol.go
+++ b/eth/protocol.go
@@ -211,16 +211,6 @@ func (self *ethProtocol) handle() error {
// uses AddPeer followed by AddHashes, AddBlock only if peer is the best peer
// (or selected as new best peer)
if self.blockPool.AddPeer(request.TD, hash, self.id, self.requestBlockHashes, self.requestBlocks, self.protoErrorDisconnect) {
- called := true
- iter := func() ([]byte, bool) {
- if called {
- called = false
- return hash, true
- } else {
- return nil, false
- }
- }
- self.blockPool.AddBlockHashes(iter, self.id)
self.blockPool.AddBlock(request.Block, self.id)
}