Add basic `OutputSweeper` test in BP
[rust-lightning] / lightning / src / ln / onion_payment.rs
index 8a721a8614bf149b40385970e3ffcdad177a2481..aa8ee0ce9be6bfe3a46301c4cb5d9c57610f49c5 100644 (file)
@@ -20,7 +20,9 @@ use crate::ln::onion_utils::{HTLCFailReason, INVALID_ONION_BLINDING};
 use crate::sign::{NodeSigner, Recipient};
 use crate::util::logger::Logger;
 
+#[allow(unused_imports)]
 use crate::prelude::*;
+
 use core::ops::Deref;
 
 /// Invalid inbound onion payment.
@@ -139,7 +141,7 @@ pub(super) fn create_recv_pending_htlc_info(
                         cltv_expiry_height, payment_metadata, false),
                msgs::InboundOnionPayload::BlindedReceive {
                        sender_intended_htlc_amt_msat, total_msat, cltv_expiry_height, payment_secret,
-                       intro_node_blinding_point, payment_constraints, keysend_preimage, ..
+                       intro_node_blinding_point, payment_constraints, keysend_preimage, custom_tlvs
                } => {
                        check_blinded_payment_constraints(
                                sender_intended_htlc_amt_msat, cltv_expiry, &payment_constraints
@@ -152,7 +154,7 @@ pub(super) fn create_recv_pending_htlc_info(
                                        }
                                })?;
                        let payment_data = msgs::FinalOnionHopData { payment_secret, total_msat };
-                       (Some(payment_data), keysend_preimage, Vec::new(),
+                       (Some(payment_data), keysend_preimage, custom_tlvs,
                         sender_intended_htlc_amt_msat, cltv_expiry_height, None,
                         intro_node_blinding_point.is_none())
                }