Skip to content

Commit

Permalink
core: remove unused ContractCode method from BlockChain (ethereum#27186)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet authored and devopsbo3 committed Nov 10, 2023
1 parent 9618a5d commit 317d990
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/blockchain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,6 @@ 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 317d990

Please sign in to comment.