From 4db08aa4dcb046b7dc6806a72ad09d7d3fcb5724 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 21 Feb 2019 10:25:37 +0100 Subject: [PATCH] core/blockchain: remove unused method --- core/blockchain.go | 7 ------- 1 file changed, 7 deletions(-) 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 {