core: use OpenTrie to check state presence

This commit is contained in:
Felix Lange 2017-06-21 12:55:02 +02:00
parent df0056c1dc
commit c5a5bf7d52

View file

@ -526,7 +526,7 @@ func (bc *BlockChain) HasBlockAndState(hash common.Hash) bool {
return false
}
// Ensure the associated state is also present
_, err := state.New(block.Root(), bc.stateCache)
_, err := bc.stateCache.OpenTrie(block.Root())
return err == nil
}