File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -7515,7 +7515,16 @@ where
7515
7515
}
7516
7516
}
7517
7517
7518
- if !forward_htlcs. is_empty ( ) {
7518
+ let mut forward_ev_exists = false ;
7519
+ let mut intercept_count = 0 ;
7520
+ for ev in & pending_events_read {
7521
+ match ev {
7522
+ events:: Event :: PendingHTLCsForwardable { .. } => { forward_ev_exists = true ; break }
7523
+ events:: Event :: HTLCIntercepted { .. } => intercept_count += 1 ,
7524
+ _ => { }
7525
+ }
7526
+ }
7527
+ if !forward_ev_exists && intercept_count < forward_htlcs. len ( ) {
7519
7528
// If we have pending HTLCs to forward, assume we either dropped a
7520
7529
// `PendingHTLCsForwardable` or the user received it but never processed it as they
7521
7530
// shut down before the timer hit. Either way, set the time_forwardable to a small
You can’t perform that action at this time.
0 commit comments