feat: add header by number provider fn (#299)

* feat: add header by number provider fn

* Update crates/interfaces/src/provider/block.rs

Co-authored-by: rakita <rakita@users.noreply.github.com>

Co-authored-by: rakita <rakita@users.noreply.github.com>
This commit is contained in:
Matthias Seitz
2022-11-30 14:05:46 +01:00
committed by GitHub
parent 69b2adab1a
commit d0e9e6fe80
3 changed files with 24 additions and 7 deletions

View File

@ -417,6 +417,10 @@ mod tests {
fn header(&self, _block_number: &BlockHash) -> Result<Option<Header>> {
Ok(self.parent.clone())
}
fn header_by_number(&self, _num: u64) -> Result<Option<Header>> {
Ok(self.parent.clone())
}
}
/// got test block
fn mock_block() -> (BlockLocked, Header) {