feat(electrum)!: Update bdk_electrum to use merkle proofs

This commit is contained in:
Wei Chen
2024-06-25 19:20:44 +08:00
parent 1a39821b88
commit d7f4ab71e2
4 changed files with 204 additions and 305 deletions

View File

@@ -63,9 +63,7 @@ fn main() -> Result<(), anyhow::Error> {
})
.inspect_spks_for_all_keychains(|_, _, _| std::io::stdout().flush().expect("must flush"));
let mut update = client
.full_scan(request, STOP_GAP, BATCH_SIZE, false)?
.with_confirmation_time_height_anchor(&client)?;
let mut update = client.full_scan(request, STOP_GAP, BATCH_SIZE, false)?;
let now = std::time::UNIX_EPOCH.elapsed().unwrap().as_secs();
let _ = update.graph_update.update_last_seen_unconfirmed(now);