You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ln/channelmonitor.rs
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1179,11 +1179,34 @@ impl ChannelMonitor {
1179
1179
}
1180
1180
}
1181
1181
1182
-
if !inputs.is_empty() || !txn_to_broadcast.is_empty(){// ie we're confident this is actually ours
1182
+
if !inputs.is_empty() || !txn_to_broadcast.is_empty()|| per_commitment_option.is_some(){// ie we're confident this is actually ours
1183
1183
// We're definitely a remote commitment transaction!
1184
1184
log_trace!(self,"Got broadcast of revoked remote commitment transaction, generating general spend tx with {} inputs and {} other txn to broadcast", inputs.len(), txn_to_broadcast.len());
for&(ref payment_hash, ref source, _) in outpoints.iter(){
1195
+
log_trace!(self,"Failing HTLC with payment_hash {} from {} remote commitment tx due to broadcast of revoked remote commitment transaction", log_bytes!(payment_hash.0), $commitment_tx);
// No need to check local commitment txn, symmetric HTLCSource must be present as per-htlc data on remote commitment tx
1187
1210
}
1188
1211
if inputs.is_empty(){return(txn_to_broadcast,(commitment_txid, watch_outputs), spendable_outputs, htlc_updated);}// Nothing to be done...probably a false positive/local tx
1189
1212
@@ -1211,29 +1234,6 @@ impl ChannelMonitor {
1211
1234
output: spend_tx.output[0].clone(),
1212
1235
});
1213
1236
txn_to_broadcast.push(spend_tx);
1214
-
1215
-
// TODO: We really should only fail backwards after our revocation claims have been
1216
-
// confirmed, but we also need to do more other tracking of in-flight pre-confirm
1217
-
// on-chain claims, so we can do that at the same time.
log_trace!(self,"Failing HTLC with payment_hash {} from current remote commitment tx due to broadcast of revoked remote commitment transaction", log_bytes!(payment_hash.0));
log_trace!(self,"Failing HTLC with payment_hash {} from previous remote commitment tx due to broadcast of revoked remote commitment transaction", log_bytes!(payment_hash.0));
0 commit comments