eth/downloader: fixed test

This commit is contained in:
obscuren
2015-05-15 12:26:34 +02:00
parent f6669db001
commit cfb2b51b74
2 changed files with 4 additions and 2 deletions

View File

@ -81,7 +81,7 @@ func testChain(chainB types.Blocks, bman *BlockProcessor) (*big.Int, error) {
return nil, err
}
parent := bman.bc.GetBlock(block.ParentHash())
block.Td = CalculateTD(block, parent)
block.Td = CalcTD(block, parent)
td = block.Td
bman.bc.mu.Lock()