core/blockchain: remove unused method

This commit is contained in:
Martin Holst Swende 2019-02-21 10:25:37 +01:00
parent e6eb32f904
commit 4db08aa4dc
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -588,13 +588,6 @@ func (bc *BlockChain) HasState(hash common.Hash) bool {
return err == nil 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 // HasBlockAndState checks if a block and associated state trie is fully present
// in the database or not, caching it if present. // in the database or not, caching it if present.
func (bc *BlockChain) HasBlockAndState(hash common.Hash, number uint64) bool { func (bc *BlockChain) HasBlockAndState(hash common.Hash, number uint64) bool {