aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-29 21:09:37 +0800
committerobscuren <geffobscura@gmail.com>2015-04-29 21:27:04 +0800
commitc9300458344e9024b4d18171f87b7e0edb3b6859 (patch)
treec9869eaec4f0683f7b7303ab7a9e681123349bcd /eth/downloader
parentdfbf580354711af3b542b8c6f5608852d7b90ce3 (diff)
downloadgo-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.tar
go-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.gz
go-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.bz2
go-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.lz
go-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.xz
go-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.zst
go-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.zip
core: fixed tetst to reflect (int, error) return by insertChain
Diffstat (limited to 'eth/downloader')
-rw-r--r--eth/downloader/downloader_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index 8843ca0c7..5518163ca 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -62,10 +62,10 @@ func (dl *downloadTester) hasBlock(hash common.Hash) bool {
return false
}
-func (dl *downloadTester) insertChain(blocks types.Blocks) error {
+func (dl *downloadTester) insertChain(blocks types.Blocks) (int, error) {
dl.insertedBlocks += len(blocks)
- return nil
+ return 0, nil
}
func (dl *downloadTester) getHashes(hash common.Hash) error {