From c5a5bf7d529dd47bd2b135d00e756c22e0cd377e Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 21 Jun 2017 12:55:02 +0200 Subject: [PATCH] core: use OpenTrie to check state presence --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index b6405ab1f3..aab2e72f3a 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -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 }