mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/blockchain: remove unused method
This commit is contained in:
parent
e6eb32f904
commit
4db08aa4dc
1 changed files with 0 additions and 7 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue