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 @@ -8303,7 +8303,7 @@ where
8303
8303
} else { None }
8304
8304
} else { None }
8305
8305
} ) ;
8306
- for ( prev_hop_data, htlc , payment_preimage) in outbound_claimed_htlcs_iter {
8306
+ for ( prev_hop_data, _ , payment_preimage) in outbound_claimed_htlcs_iter {
8307
8307
let mut is_chan_open = false ;
8308
8308
if let Some ( ( node_id, chan_id) ) = short_to_chan_info. get ( & prev_hop_data. short_channel_id ) {
8309
8309
if let Some ( mut peer) = per_peer_state. get_mut ( node_id) . map ( |node| node. lock ( ) . unwrap ( ) ) {
@@ -8320,6 +8320,9 @@ where
8320
8320
// guaranteed to regenerate this claim on
8321
8321
// restart as long as the source monitor
8322
8322
// sticks around.
8323
+ // XXX - this is broken, the preimage monitor is not
8324
+ // neccessarily closed and thus we need to block further
8325
+ // updates to that channel on this new claim!
8323
8326
pending_background_events. push (
8324
8327
BackgroundEvent :: MonitorUpdateRegeneratedOnStartup {
8325
8328
counterparty_node_id : * node_id,
You can’t perform that action at this time.
0 commit comments