mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
core: use OpenTrie to check state presence
This commit is contained in:
parent
df0056c1dc
commit
c5a5bf7d52
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue