Skip to content

Commit

Permalink
Revert "core: remove unused ContractCode method from BlockChain (ethe…
Browse files Browse the repository at this point in the history
…reum#27186)"

This reverts commit 317d990.
  • Loading branch information
devopsbo3 committed Nov 10, 2023
1 parent 23adc79 commit 71fb75b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/blockchain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down

0 comments on commit 71fb75b

Please sign in to comment.