|
|
@ -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.
|
|
|
|
//
|
|
|
|
//
|
|
|
|