aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-03 20:10:31 +0800
committerobscuren <geffobscura@gmail.com>2015-05-03 20:10:31 +0800
commit493181ea09e5ac1e8798e4e97260fa5bff84ea1c (patch)
treec9eb3b9122735ba8b9024fc376fd0c260479b443 /eth/downloader
parentc5b8acbaf0ae662a6b72568d155880d28d1034a1 (diff)
downloadgo-tangerine-493181ea09e5ac1e8798e4e97260fa5bff84ea1c.tar
go-tangerine-493181ea09e5ac1e8798e4e97260fa5bff84ea1c.tar.gz
go-tangerine-493181ea09e5ac1e8798e4e97260fa5bff84ea1c.tar.bz2
go-tangerine-493181ea09e5ac1e8798e4e97260fa5bff84ea1c.tar.lz
go-tangerine-493181ea09e5ac1e8798e4e97260fa5bff84ea1c.tar.xz
go-tangerine-493181ea09e5ac1e8798e4e97260fa5bff84ea1c.tar.zst
go-tangerine-493181ea09e5ac1e8798e4e97260fa5bff84ea1c.zip
eth/downloader: changed has to blockHashes for chain linking
Diffstat (limited to 'eth/downloader')
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index c1dc9d3a8..a484ce0a7 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -270,7 +270,7 @@ out:
)
hashSet := set.New()
for _, hash = range hashes {
- if d.hasBlock(hash) || d.queue.has(hash) {
+ if d.hasBlock(hash) || d.queue.blockHashes.Has(hash) {
glog.V(logger.Debug).Infof("Found common hash %x\n", hash[:4])
done = true