parser: add recap dataset

This commit is contained in:
k
2024-07-21 22:59:54 +02:00
parent 180d044f5d
commit 8b08a82f07
16 changed files with 696 additions and 1208 deletions

View File

@@ -45,6 +45,12 @@ impl Height {
pub fn is_safe(&self, block_count: usize) -> bool {
**self < (block_count - NUMBER_OF_UNSAFE_BLOCKS) as u32
}
pub fn iter_range_inclusive(first: Height, last: Height) -> impl Iterator<Item = Height> {
let range = (*first)..=(*last);
range.into_iter().map(Height::new)
}
}
impl PartialEq<u64> for Height {