From ba123df0ff9a7fbae8c22645f003c8f474845dd0 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 14 May 2026 16:01:39 +0300 Subject: [PATCH] fix: include last height into batch on scan --- libwallet/src/api_impl/owner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libwallet/src/api_impl/owner.rs b/libwallet/src/api_impl/owner.rs index f77ecb2..a9db1b0 100644 --- a/libwallet/src/api_impl/owner.rs +++ b/libwallet/src/api_impl/owner.rs @@ -979,7 +979,7 @@ where // Scan every 10k heights to save data between batches in case of interruption. let mut total_pmmr_range = None; - for h in (start_height..tip.0).step_by(10001) { + for h in (start_height..=tip.0).step_by(10001) { let (mut info, range) = scan::scan( wallet_inst.clone(), keychain_mask, @@ -1142,7 +1142,7 @@ where // Scan every 10k heights to save data between batches in case of interruption. let mut total_pmmr_range = None; - for h in (start_height..tip.0).step_by(10001) { + for h in (start_height..=tip.0).step_by(10001) { let (mut info, range) = scan::scan( wallet_inst.clone(), keychain_mask,