diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-09-15 18:33:45 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-09-15 19:45:53 +0800 |
commit | 99b62f36b6443e8ed8ff4e8c09ee9267eeaea162 (patch) | |
tree | 1839f62c31897a62f9e190a4fbda27310a060825 /eth/downloader/downloader.go | |
parent | 0a7d059b6a4365c671386855289bfdc3178e2d60 (diff) | |
download | go-tangerine-99b62f36b6443e8ed8ff4e8c09ee9267eeaea162.tar go-tangerine-99b62f36b6443e8ed8ff4e8c09ee9267eeaea162.tar.gz go-tangerine-99b62f36b6443e8ed8ff4e8c09ee9267eeaea162.tar.bz2 go-tangerine-99b62f36b6443e8ed8ff4e8c09ee9267eeaea162.tar.lz go-tangerine-99b62f36b6443e8ed8ff4e8c09ee9267eeaea162.tar.xz go-tangerine-99b62f36b6443e8ed8ff4e8c09ee9267eeaea162.tar.zst go-tangerine-99b62f36b6443e8ed8ff4e8c09ee9267eeaea162.zip |
eth/downloader: header-chain order and ancestry check
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r-- | eth/downloader/downloader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 5a6bcdff0..f038e24e4 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -1078,7 +1078,7 @@ func (d *Downloader) fetchHeaders(p *peer, td *big.Int, from uint64) error { // Otherwise insert all the new headers, aborting in case of junk glog.V(logger.Detail).Infof("%v: inserting %d headers from #%d", p, len(headerPack.headers), from) - inserts := d.queue.Insert(headerPack.headers) + inserts := d.queue.Insert(headerPack.headers, from) if len(inserts) != len(headerPack.headers) { glog.V(logger.Debug).Infof("%v: stale headers", p) return errBadPeer |