Skip to content

Commit 035afa6

Browse files
committed
Fail PendingInboundPayments after their expiry time is reached
1 parent 41659b3 commit 035afa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3712,6 +3712,10 @@ where
37123712
});
37133713
!htlcs.is_empty() // Only retain this entry if htlcs has at least one entry.
37143714
});
3715+
let mut payment_secrets = self.pending_inbound_payments.lock().unwrap();
3716+
payment_secrets.retain(|_, inbound_payment| {
3717+
inbound_payment.expiry_height > height
3718+
});
37153719
}
37163720
}
37173721

0 commit comments

Comments
 (0)