diff --git a/src/handlers/offline.rs b/src/handlers/offline.rs index 15cdd26b..c45c325d 100644 --- a/src/handlers/offline.rs +++ b/src/handlers/offline.rs @@ -884,6 +884,10 @@ impl AppCommand>> for UnlockUtxoCommand { fn execute(&self, ctx: &mut AppContext>) -> Result { 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; skipping"); + continue; + } wallet.unlock_outpoint(*out_point); } let locked = wallet