feat(rpc): enable eth_getProof (#5071)

This commit is contained in:
Roman Krasiuk
2023-10-18 09:05:26 -07:00
committed by GitHub
parent c947d85f44
commit 3adc627a35
26 changed files with 176 additions and 200 deletions

View File

@@ -553,7 +553,9 @@ mod tests {
use reth_primitives::{
bytes,
constants::{BEACON_ROOTS_ADDRESS, SYSTEM_ADDRESS},
keccak256, Account, Bytecode, Bytes, ChainSpecBuilder, ForkCondition, StorageKey, MAINNET,
keccak256,
trie::AccountProof,
Account, Bytecode, Bytes, ChainSpecBuilder, ForkCondition, StorageKey, MAINNET,
};
use reth_provider::{AccountReader, BlockHashReader, StateRootProvider};
use revm::{Database, TransitionState};
@@ -634,12 +636,8 @@ mod tests {
Ok(self.contracts.get(&code_hash).cloned())
}
fn proof(
&self,
_address: Address,
_keys: &[B256],
) -> RethResult<(Vec<Bytes>, B256, Vec<Vec<Bytes>>)> {
todo!()
fn proof(&self, _address: Address, _keys: &[B256]) -> RethResult<AccountProof> {
unimplemented!("proof generation is not supported")
}
}