diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-29 21:09:37 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-29 21:27:04 +0800 |
commit | c9300458344e9024b4d18171f87b7e0edb3b6859 (patch) | |
tree | c9869eaec4f0683f7b7303ab7a9e681123349bcd /eth | |
parent | dfbf580354711af3b542b8c6f5608852d7b90ce3 (diff) | |
download | dexon-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.gz dexon-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.zst dexon-c9300458344e9024b4d18171f87b7e0edb3b6859.zip |
core: fixed tetst to reflect (int, error) return by insertChain
Diffstat (limited to 'eth')
-rw-r--r-- | eth/downloader/downloader_test.go | 4 |
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 { |