Skip to content

Commit

Permalink
fix: apply fix from bdk PR 1192 to see old confirmed TX
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Nov 1, 2023
1 parent 36afa74 commit cdb0d50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.await?;

println!();
let missing_heights = wallet.tx_graph().missing_heights(wallet.local_chain());
//let missing_heights = wallet.tx_graph().missing_heights(wallet.local_chain());
let missing_heights = graph_update.missing_heights(wallet.local_chain());
let chain_update = client
.update_local_chain(prev_tip.clone(), missing_heights)
.await?;
Expand Down Expand Up @@ -286,7 +287,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.scan_txs(spks.into_iter(), txids, outpoints, PARALLEL_REQUESTS)
.await?;

let missing_heights = wallet.tx_graph().missing_heights(wallet.local_chain());
//let missing_heights = wallet.tx_graph().missing_heights(wallet.local_chain());
let missing_heights = graph_update.missing_heights(wallet.local_chain());
let chain_update = client.update_local_chain(prev_tip, missing_heights).await?;

let update = Update {
Expand Down

0 comments on commit cdb0d50

Please # to comment.