gui: keep conflicting PSBTs as Pending until confirmation

This commit is contained in:
jp1ac4 2023-11-28 14:00:49 +00:00
parent 5391bfe04c
commit 0ab00cd658
No known key found for this signature in database
GPG Key ID: A7ACD32423568D7B

View File

@ -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
}
}