Skip to content

Commit

Permalink
gui: keep conflicting PSBTs as Pending until confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Dec 6, 2023
1 parent 5391bfe commit 0ab00cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gui/src/daemon/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 0ab00cd

Please sign in to comment.