Skip to content

Commit

Permalink
Merge pull request #2564 from get10101/fix/unreserve-utxos
Browse files Browse the repository at this point in the history
fix: Unreserve utxos on wallet sync
  • Loading branch information
bonomat authored May 24, 2024
2 parents 739d9dd + ee3544a commit 06d2dd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/xxi-node/src/node/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ impl<D: BdkStorage, S: TenTenOneStorage, N: Storage + Send + Sync + 'static> Nod
.await
.expect("task to complete")?;

// On sync, we unlock our locked utxos, because we are syncing with the blockchain we will
// find already spent utxos and release those which were locked unnecessarily.
self.wallet.locked_utxos.lock().clear();

Ok(())
}

Expand Down

0 comments on commit 06d2dd6

Please sign in to comment.