From 7c2dfac746ca305a73134eda280ed9d9b5730f8a Mon Sep 17 00:00:00 2001 From: Vihiga Tyonum Date: Fri, 17 Jul 2026 11:55:50 +0100 Subject: [PATCH] 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. --- src/handlers/offline.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers/offline.rs b/src/handlers/offline.rs index 993d10c..725b29c 100644 --- a/src/handlers/offline.rs +++ b/src/handlers/offline.rs @@ -874,7 +874,8 @@ impl AppCommand>> for LockUtxoCommand { let wallet = &mut ctx.state.wallet; for out_point in &self.utxos { if wallet.get_utxo(*out_point).is_none() { - eprintln!("warning: {out_point} is not a known wallet UTXO; locking anyway"); + eprintln!("warning: {out_point} is not a known wallet UTXO; skipping"); + continue; } wallet.lock_outpoint(*out_point); } -- 2.49.0