From 1366db7382d426d5521454666b7f6a9221d3b299 Mon Sep 17 00:00:00 2001 From: GuiSchet Date: Mon, 18 May 2026 10:57:16 -0300 Subject: [PATCH 1/2] fix(cliv2): scan-rpc ignores wallet birthday --- cli/v2/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/v2/src/main.rs b/cli/v2/src/main.rs index a32d009..1c4f296 100644 --- a/cli/v2/src/main.rs +++ b/cli/v2/src/main.rs @@ -479,10 +479,15 @@ async fn main() -> anyhow::Result<()> { } Commands::ScanRpc { rpc_args } => { let rpc_client = rpc_args.new_client()?; + let start_height = if wallet.birthday.height <= wallet.chain().tip().height() { + wallet.chain().tip().height() + } else { + wallet.birthday.height + }; let mut emitter = Emitter::new( &rpc_client, wallet.chain().tip(), - 0, + start_height, NO_EXPECTED_MEMPOOL_TXIDS, ); From d815fe617166b901a150daf9c3cb1675a810017e Mon Sep 17 00:00:00 2001 From: GuiSchet Date: Tue, 19 May 2026 09:02:08 -0300 Subject: [PATCH 2/2] fix(cli2): log start point at scan-rpc begin --- cli/v2/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/v2/src/main.rs b/cli/v2/src/main.rs index 1c4f296..2a31fcd 100644 --- a/cli/v2/src/main.rs +++ b/cli/v2/src/main.rs @@ -484,6 +484,9 @@ async fn main() -> anyhow::Result<()> { } else { wallet.birthday.height }; + + tracing::info!("Synchronizing from block height {}", start_height); + let mut emitter = Emitter::new( &rpc_client, wallet.chain().tip(),