Skip to content

Commit 5dbb35e

Browse files
committed
f fuck
1 parent 718ade1 commit 5dbb35e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8318,7 +8318,7 @@ where
83188318
} else { None }
83198319
} else { None }
83208320
});
8321-
for (prev_hop_data, htlc, payment_preimage) in outbound_claimed_htlcs_iter {
8321+
for (prev_hop_data, _, payment_preimage) in outbound_claimed_htlcs_iter {
83228322
let mut is_chan_open = false;
83238323
if let Some((node_id, chan_id)) = short_to_chan_info.get(&prev_hop_data.short_channel_id) {
83248324
if let Some(mut peer) = per_peer_state.get_mut(node_id).map(|node| node.lock().unwrap()) {
@@ -8335,6 +8335,9 @@ where
83358335
// guaranteed to regenerate this claim on
83368336
// restart as long as the source monitor
83378337
// sticks around.
8338+
// XXX - this is broken, the preimage monitor is not
8339+
// neccessarily closed and thus we need to block further
8340+
// updates to that channel on this new claim!
83388341
pending_background_events.push(
83398342
BackgroundEvent::MonitorUpdateRegeneratedOnStartup {
83408343
counterparty_node_id: *node_id,

0 commit comments

Comments
 (0)