Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion cli/v2/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,18 @@ 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
};

tracing::info!("Synchronizing from block height {}", start_height);

let mut emitter = Emitter::new(
&rpc_client,
wallet.chain().tip(),
0,
start_height,
NO_EXPECTED_MEMPOOL_TXIDS,
);

Expand Down