mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user