Include Refund context in blinded payment paths
[rust-lightning] / lightning / src / ln / channelmanager.rs
index 5487ae8ab84ce4c3bcdaee9226c43a821169c4bc..54640ca7d05e86eb2f7f048cbf36731afdd0f750 100644 (file)
@@ -32,7 +32,7 @@ use bitcoin::secp256k1::Secp256k1;
 use bitcoin::{secp256k1, Sequence};
 
 use crate::blinded_path::{BlindedPath, NodeIdLookUp};
-use crate::blinded_path::payment::{Bolt12OfferContext, PaymentConstraints, PaymentContext, ReceiveTlvs};
+use crate::blinded_path::payment::{Bolt12OfferContext, Bolt12RefundContext, PaymentConstraints, PaymentContext, ReceiveTlvs};
 use crate::chain;
 use crate::chain::{Confirm, ChannelMonitorUpdateStatus, Watch, BestBlock};
 use crate::chain::chaininterface::{BroadcasterInterface, ConfirmationTarget, FeeEstimator, LowerBoundedFeeEstimator};
@@ -8826,7 +8826,7 @@ where
 
                match self.create_inbound_payment(Some(amount_msats), relative_expiry, None) {
                        Ok((payment_hash, payment_secret)) => {
-                               let payment_context = PaymentContext::unknown();
+                               let payment_context = PaymentContext::Bolt12Refund(Bolt12RefundContext {});
                                let payment_paths = self.create_blinded_payment_paths(
                                        amount_msats, payment_secret, payment_context
                                )