We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b363dc commit afdb559Copy full SHA for afdb559
lightning-transaction-sync/src/esplora.rs
@@ -285,8 +285,15 @@ where
285
if let Some(spending_txid) = output_status.txid {
286
if let Some(spending_tx_status) = output_status.status {
287
if confirmed_txs.iter().any(|ctx| ctx.tx.txid() == spending_txid) {
288
- continue;
+ if spending_tx_status.confirmed {
289
+ // Skip inserting duplicate ConfirmedTx entry
290
+ continue;
291
+ } else {
292
+ log_trace!(self.logger, "Inconsistency: Detected previously-confirmed Tx {} as unconfirmed", spending_txid);
293
+ return Err(InternalError::Inconsistency);
294
+ }
295
}
296
+
297
if let Some(confirmed_tx) = maybe_await!(self
298
.get_confirmed_tx(
299
&spending_txid,
0 commit comments