From: Valentine Wallace Date: Thu, 9 Nov 2023 20:15:15 +0000 (-0500) Subject: Make BlindedPath::new_for_payment pub X-Git-Tag: v0.0.119~9^2~4 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=ae08d0c86a81a0d287f466c8ce97d616885c5d8b;p=rust-lightning Make BlindedPath::new_for_payment pub Because we now support receiving to multi-hop blinded paths. --- diff --git a/lightning/src/blinded_path/mod.rs b/lightning/src/blinded_path/mod.rs index d75b4f25b..b1fc9e1c0 100644 --- a/lightning/src/blinded_path/mod.rs +++ b/lightning/src/blinded_path/mod.rs @@ -105,7 +105,7 @@ impl BlindedPath { /// /// [`ForwardTlvs`]: crate::blinded_path::payment::ForwardTlvs // TODO: make all payloads the same size with padding + add dummy hops - pub(crate) fn new_for_payment( + pub fn new_for_payment( intermediate_nodes: &[payment::ForwardNode], payee_node_id: PublicKey, payee_tlvs: payment::ReceiveTlvs, htlc_maximum_msat: u64, entropy_source: &ES, secp_ctx: &Secp256k1