mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 22:43:47 +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
|
return false
|
||||||
}
|
}
|
||||||
// Ensure the associated state is also present
|
// Ensure the associated state is also present
|
||||||
_, err := state.New(block.Root(), bc.stateCache)
|
_, err := bc.stateCache.OpenTrie(block.Root())
|
||||||
return err == nil
|
return err == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue