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 f397808Copy full SHA for f397808
lightning-transaction-sync/src/esplora.rs
@@ -285,8 +285,14 @@ 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
+ log_trace!(self.logger, "Inconsistency: Detected previously-confirmed Tx {} as unconfirmed", spending_txid);
290
+ return Err(InternalError::Inconsistency);
291
+ } else {
292
+ continue;
293
+ }
294
}
295
+
296
if let Some(confirmed_tx) = maybe_await!(self
297
.get_confirmed_tx(
298
&spending_txid,
0 commit comments