Skip to content

Commit 1885e5b

Browse files
Make blinded payment TLV fields public
These should've been made public when they were added for use in BlindedPath::new_for_payment.
1 parent 1d20458 commit 1885e5b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lightning/src/blinded_path/payment.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ use core::convert::TryFrom;
1919
/// Data to construct a [`BlindedHop`] for forwarding a payment.
2020
pub struct ForwardTlvs {
2121
/// The short channel id this payment should be forwarded out over.
22-
short_channel_id: u64,
22+
pub short_channel_id: u64,
2323
/// Payment parameters for relaying over [`Self::short_channel_id`].
24-
payment_relay: PaymentRelay,
24+
pub payment_relay: PaymentRelay,
2525
/// Payment constraints for relaying over [`Self::short_channel_id`].
26-
payment_constraints: PaymentConstraints,
26+
pub payment_constraints: PaymentConstraints,
2727
/// Supported and required features when relaying a payment onion containing this object's
2828
/// corresponding [`BlindedHop::encrypted_payload`].
2929
///
3030
/// [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload
31-
features: BlindedHopFeatures,
31+
pub features: BlindedHopFeatures,
3232
}
3333

3434
/// Data to construct a [`BlindedHop`] for receiving a payment. This payload is custom to LDK and
3535
/// may not be valid if received by another lightning implementation.
3636
pub struct ReceiveTlvs {
3737
/// Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together.
38-
payment_secret: PaymentSecret,
38+
pub payment_secret: PaymentSecret,
3939
/// Constraints for the receiver of this payment.
40-
payment_constraints: PaymentConstraints,
40+
pub payment_constraints: PaymentConstraints,
4141
}
4242

4343
/// Data to construct a [`BlindedHop`] for sending a payment over.

0 commit comments

Comments
 (0)