mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-20 06:44:47 -07:00
mmpl: new, mempool + rpc: fixes
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user