feat(rpc): basic engine api (#551)

* feat(rpc): engine api

* change transition config exchange

* payload block construction

* pull out engine api logic

* linter

* clippy

* clippy

* Apply suggestions from code review

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* import & map_err for RecvError

* move result

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Roman Krasiuk
2022-12-22 13:38:28 +02:00
committed by GitHub
parent 6f6c4f61e0
commit a85793cd9b
17 changed files with 564 additions and 22 deletions

View File

@ -364,6 +364,10 @@ impl HeaderProvider for MockEthProvider {
let lock = self.headers.lock();
Ok(lock.values().find(|h| h.number == num).cloned())
}
fn header_td(&self, _hash: &BlockHash) -> reth_interfaces::Result<Option<U256>> {
todo!()
}
}
impl BlockProvider for MockEthProvider {