diff --git a/core/blockchain.go b/core/blockchain.go index e6793dfb33..97156d3c51 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -588,13 +588,6 @@ func (bc *BlockChain) HasState(hash common.Hash) bool { return err == nil } -// IsCanon returns whether the given hash/number is part of the canon chain, -// irrespective of whether the state has been pruned or not -func (bc *BlockChain) IsCanon(hash common.Hash, number uint64) bool { - canonHash := rawdb.ReadCanonicalHash(bc.db, number) - return canonHash != (common.Hash{}) && canonHash == hash -} - // HasBlockAndState checks if a block and associated state trie is fully present // in the database or not, caching it if present. func (bc *BlockChain) HasBlockAndState(hash common.Hash, number uint64) bool {