mmpl: new, mempool + rpc: fixes

This commit is contained in:
nym21
2026-05-14 13:59:15 +02:00
parent 528c134f26
commit 90aca2e048
36 changed files with 1269 additions and 453 deletions

View File

@@ -14,7 +14,7 @@ pub struct CanonicalRange {
impl CanonicalRange {
pub fn walk(client: &Client, anchor: Option<&BlockHash>, tip: Height) -> Result<Self> {
let start = match anchor {
Some(hash) => Height::from(client.get_block_header_info(hash)?.height + 1),
Some(hash) => Height::from((client.get_block_header_info(hash)?.height + 1) as u64),
None => Height::ZERO,
};
let mut range = Self::between(client, start, tip)?;