From 0ab00cd6580ddc1964f4f328a90ab9c5f3f87efa Mon Sep 17 00:00:00 2001 From: jp1ac4 <121959000+jp1ac4@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:00:49 +0000 Subject: [PATCH] gui: keep conflicting PSBTs as Pending until confirmation --- gui/src/daemon/model.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/src/daemon/model.rs b/gui/src/daemon/model.rs index 585c918fc..39c248072 100644 --- a/gui/src/daemon/model.rs +++ b/gui/src/daemon/model.rs @@ -87,7 +87,12 @@ impl SpendTx { } else { status = SpendStatus::Broadcast } - } else { + // The txid will be different if this PSBT is to replace another transaction + // that is currently spending the coin. + // The PSBT status should remain as Pending so that it can be signed and broadcast. + // Once the replacement transaction has been confirmed, the PSBT for the + // transaction currently spending this coin will be shown as Deprecated. + } else if info.height.is_some() { status = SpendStatus::Deprecated } }