Skip to content

Commit 7c2dfac

Browse files
committed
feat(utxo-locking): Limit locking to known utxos
- This change removes locking utxos that are not known to the wallet at the time of locking.
1 parent 90270f7 commit 7c2dfac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/handlers/offline.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,8 @@ impl AppCommand<AppContext<OfflineOperations<'_>>> for LockUtxoCommand {
874874
let wallet = &mut ctx.state.wallet;
875875
for out_point in &self.utxos {
876876
if wallet.get_utxo(*out_point).is_none() {
877-
eprintln!("warning: {out_point} is not a known wallet UTXO; locking anyway");
877+
eprintln!("warning: {out_point} is not a known wallet UTXO; skipping");
878+
continue;
878879
}
879880
wallet.lock_outpoint(*out_point);
880881
}

0 commit comments

Comments
 (0)