mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "core: remove unused ContractCode method from BlockChain (#27186)"
This reverts commit 317d990522.
This commit is contained in:
parent
a83db0aaf0
commit
a7a168d4e5
1 changed files with 6 additions and 0 deletions
|
|
@ -299,6 +299,12 @@ func (bc *BlockChain) TrieNode(hash common.Hash) ([]byte, error) {
|
|||
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
|
||||
// hash either from ephemeral in-memory cache, or from persistent storage.
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue