Skip to content

Commit

Permalink
core: remove unused ContractCode method from BlockChain (#27186)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed May 2, 2023
1 parent 7d1ebe5 commit 7f6c045
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 7f6c045

Please sign in to comment.