Skip to content

Commit b93c770

Browse files
Derive Clone and Debug for blinded payment TLV structs
1 parent 38d9754 commit b93c770

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/blinded_path/payment.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use crate::util::ser::{Readable, Writeable, Writer};
1717
use core::convert::TryFrom;
1818

1919
/// Data to construct a [`BlindedHop`] for forwarding a payment.
20+
#[derive(Clone, Debug)]
2021
pub struct ForwardTlvs {
2122
/// The short channel id this payment should be forwarded out over.
2223
pub short_channel_id: u64,
@@ -33,6 +34,7 @@ pub struct ForwardTlvs {
3334

3435
/// Data to construct a [`BlindedHop`] for receiving a payment. This payload is custom to LDK and
3536
/// may not be valid if received by another lightning implementation.
37+
#[derive(Clone, Debug)]
3638
pub struct ReceiveTlvs {
3739
/// Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together.
3840
pub payment_secret: PaymentSecret,
@@ -59,6 +61,7 @@ enum BlindedPaymentTlvsRef<'a> {
5961
/// Parameters for relaying over a given [`BlindedHop`].
6062
///
6163
/// [`BlindedHop`]: crate::blinded_path::BlindedHop
64+
#[derive(Clone, Debug)]
6265
pub struct PaymentRelay {
6366
/// Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`].
6467
///
@@ -78,6 +81,7 @@ pub struct PaymentRelay {
7881
/// Constraints for relaying over a given [`BlindedHop`].
7982
///
8083
/// [`BlindedHop`]: crate::blinded_path::BlindedHop
84+
#[derive(Clone, Debug)]
8185
pub struct PaymentConstraints {
8286
/// The maximum total CLTV delta that is acceptable when relaying a payment over this
8387
/// [`BlindedHop`].

0 commit comments

Comments
 (0)