core: fixed tetst to reflect (int, error) return by insertChain

This commit is contained in:
obscuren
2015-04-29 15:09:37 +02:00
parent dfbf580354
commit c930045834
2 changed files with 4 additions and 4 deletions

View File

@ -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 {