File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -8318,7 +8318,7 @@ where
8318
8318
} else { None }
8319
8319
} else { None }
8320
8320
} ) ;
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 {
8322
8322
let mut is_chan_open = false ;
8323
8323
if let Some ( ( node_id, chan_id) ) = short_to_chan_info. get ( & prev_hop_data. short_channel_id ) {
8324
8324
if let Some ( mut peer) = per_peer_state. get_mut ( node_id) . map ( |node| node. lock ( ) . unwrap ( ) ) {
@@ -8335,6 +8335,9 @@ where
8335
8335
// guaranteed to regenerate this claim on
8336
8336
// restart as long as the source monitor
8337
8337
// 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!
8338
8341
pending_background_events. push (
8339
8342
BackgroundEvent :: MonitorUpdateRegeneratedOnStartup {
8340
8343
counterparty_node_id : * node_id,
You can’t perform that action at this time.
0 commit comments