Skip to content

Commit

Permalink
Merge pull request #2201 from get10101/fix/coordinator-sync
Browse files Browse the repository at this point in the history
Use `last_active_indices` during full on-chain sync
  • Loading branch information
luckysori committed Mar 11, 2024
2 parents df45d39 + 9b45ff6 commit cf10048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ln-dlc-node/src/node/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl<D: BdkStorage, S: TenTenOneStorage, N: Storage + Send + Sync + 'static> Nod
.await
.expect("task to complete");

let (graph_update, _) = client
let (graph_update, last_active_indices) = client
.full_scan(all_script_pubkeys, stop_gap, PARALLEL_REQUESTS_SYNC)
.await?;

Expand All @@ -153,7 +153,7 @@ impl<D: BdkStorage, S: TenTenOneStorage, N: Storage + Send + Sync + 'static> Nod
let wallet_update = bdk::wallet::Update {
graph: graph_update.clone(),
chain: Some(chain_update),
..Default::default()
last_active_indices,
};

spawn_blocking({
Expand Down

0 comments on commit cf10048

Please sign in to comment.