Skip to content

Commit 0f364bc

Browse files
committed
Introduce the determiners call in ChannelManager
1 parent 5fc6716 commit 0f364bc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12683,6 +12683,15 @@ where
1268312683
Err(_) => return None,
1268412684
};
1268512685

12686+
let invoice_request = match self.flow.determine_invoice_request_handling(invoice_request) {
12687+
Ok(Some(ir)) => ir,
12688+
Ok(None) => return None,
12689+
Err(_) => {
12690+
log_trace!(self.logger, "Failed to handle invoice request");
12691+
return None;
12692+
}
12693+
};
12694+
1268612695
let amount_msats = match InvoiceBuilder::<DerivedSigningPubkey>::amount_msats(
1268712696
&invoice_request.inner, None
1268812697
) {
@@ -12762,6 +12771,15 @@ where
1276212771
&self.logger, None, None, Some(invoice.payment_hash()),
1276312772
);
1276412773

12774+
let invoice = match self.flow.determine_invoice_handling(invoice, payment_id) {
12775+
Ok(Some(invoice)) => invoice,
12776+
Ok(None) => return None,
12777+
Err(_) => {
12778+
log_trace!(logger, "Failed to handle invoice");
12779+
return None
12780+
},
12781+
};
12782+
1276512783
if self.default_configuration.manually_handle_bolt12_invoices {
1276612784
// Update the corresponding entry in `PendingOutboundPayment` for this invoice.
1276712785
// This ensures that event generation remains idempotent in case we receive

0 commit comments

Comments
 (0)