Skip to content

Commit 8588943

Browse files
authored
Merge pull request #3517 from valentinewallace/2025-01-async-receive-prefactor
Async receive prefactor
2 parents a706159 + f799e6b commit 8588943

12 files changed

+250
-270
lines changed

fuzz/src/onion_message.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ struct TestAsyncPaymentsMessageHandler {}
122122

123123
impl AsyncPaymentsMessageHandler for TestAsyncPaymentsMessageHandler {
124124
fn handle_held_htlc_available(
125-
&self, _message: HeldHtlcAvailable, responder: Option<Responder>,
125+
&self, _message: HeldHtlcAvailable, _context: AsyncPaymentsContext,
126+
responder: Option<Responder>,
126127
) -> Option<(ReleaseHeldHtlc, ResponseInstruction)> {
127128
let responder = match responder {
128129
Some(resp) => resp,

lightning/src/events/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,8 @@ pub enum PaymentFailureReason {
561561
#[cfg_attr(feature = "std", doc = "")]
562562
#[cfg_attr(feature = "std", doc = "[`Retry::Timeout`]: crate::ln::channelmanager::Retry::Timeout")]
563563
RetriesExhausted,
564-
/// The payment expired while retrying, based on the provided
565-
/// [`PaymentParameters::expiry_time`].
564+
/// Either the BOLT 12 invoice was expired by the time we received it or the payment expired while
565+
/// retrying based on the provided [`PaymentParameters::expiry_time`].
566566
///
567567
/// Also used for [`InvoiceRequestExpired`] when downgrading to version prior to 0.0.124.
568568
///

0 commit comments

Comments
 (0)