aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-09 23:34:49 +0800
committerobscuren <geffobscura@gmail.com>2015-01-09 23:34:49 +0800
commitb136b387a779fe668afd2b127ec3e92b3bf21686 (patch)
treeb326ece8aabaf39fcafc15b00d96ce0d1c4333e7 /eth/protocol.go
parent6eb455032cdf9fec37f7a2abfc833de64003beca (diff)
parenta35be3a12a874358e4cc7ed8ab0db0e51b509953 (diff)
downloadgo-tangerine-b136b387a779fe668afd2b127ec3e92b3bf21686.tar
go-tangerine-b136b387a779fe668afd2b127ec3e92b3bf21686.tar.gz
go-tangerine-b136b387a779fe668afd2b127ec3e92b3bf21686.tar.bz2
go-tangerine-b136b387a779fe668afd2b127ec3e92b3bf21686.tar.lz
go-tangerine-b136b387a779fe668afd2b127ec3e92b3bf21686.tar.xz
go-tangerine-b136b387a779fe668afd2b127ec3e92b3bf21686.tar.zst
go-tangerine-b136b387a779fe668afd2b127ec3e92b3bf21686.zip
Merge branch 'ethersphere-develop' into 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)
}