Skip to content

Commit 512e825

Browse files
committed
Update handle_offer_paths_request to use create_blinded_paths
1 parent d6292d1 commit 512e825

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lightning/src/offers/flow.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,16 +1455,13 @@ where
14551455
let (offer_paths, paths_expiry) = {
14561456
let path_absolute_expiry =
14571457
duration_since_epoch.saturating_add(DEFAULT_ASYNC_RECEIVE_OFFER_EXPIRY);
1458-
let context = OffersContext::StaticInvoiceRequested {
1458+
let context = MessageContext::Offers(OffersContext::StaticInvoiceRequested {
14591459
recipient_id: recipient_id.clone(),
14601460
path_absolute_expiry,
14611461
invoice_id,
1462-
};
1463-
match self.create_blinded_paths_using_absolute_expiry(
1464-
context,
1465-
Some(path_absolute_expiry),
1466-
peers,
1467-
) {
1462+
});
1463+
1464+
match self.create_blinded_paths(peers, context) {
14681465
Ok(paths) => (paths, path_absolute_expiry),
14691466
Err(()) => return None,
14701467
}

0 commit comments

Comments
 (0)