mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 05:56:37 +00:00
core: remove unused ContractCode method from BlockChain (#27186)
This commit is contained in:
parent
7d1ebe51b7
commit
7f6c045e0d
1 changed files with 0 additions and 6 deletions
|
|
@ -299,12 +299,6 @@ func (bc *BlockChain) TrieNode(hash common.Hash) ([]byte, error) {
|
||||||
return bc.stateCache.TrieDB().Node(hash)
|
return bc.stateCache.TrieDB().Node(hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContractCode retrieves a blob of data associated with a contract hash
|
|
||||||
// either from ephemeral in-memory cache, or from persistent storage.
|
|
||||||
func (bc *BlockChain) ContractCode(hash common.Hash) ([]byte, error) {
|
|
||||||
return bc.stateCache.ContractCode(common.Hash{}, hash)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ContractCodeWithPrefix retrieves a blob of data associated with a contract
|
// ContractCodeWithPrefix retrieves a blob of data associated with a contract
|
||||||
// hash either from ephemeral in-memory cache, or from persistent storage.
|
// hash either from ephemeral in-memory cache, or from persistent storage.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue