Skip to content

Commit e7fb47b

Browse files
committed
Derive Eq on structs behind anchors build flag
1 parent cfa8941 commit e7fb47b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lightning/src/ln/chan_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ pub fn build_anchor_input_witness(funding_key: &PublicKey, funding_sig: &Signatu
811811
///
812812
/// Normally, this is converted to the broadcaster/countersignatory-organized DirectedChannelTransactionParameters
813813
/// before use, via the as_holder_broadcastable and as_counterparty_broadcastable functions.
814-
#[derive(Clone, Debug, PartialEq)]
814+
#[derive(Clone, Debug, PartialEq, Eq)]
815815
pub struct ChannelTransactionParameters {
816816
/// Holder public keys
817817
pub holder_pubkeys: ChannelPublicKeys,
@@ -835,7 +835,7 @@ pub struct ChannelTransactionParameters {
835835
}
836836

837837
/// Late-bound per-channel counterparty data used to build transactions.
838-
#[derive(Clone, Debug, PartialEq)]
838+
#[derive(Clone, Debug, PartialEq, Eq)]
839839
pub struct CounterpartyChannelTransactionParameters {
840840
/// Counter-party public keys
841841
pub pubkeys: ChannelPublicKeys,

lightning/src/util/events.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl_writeable_tlv_based_enum_upgradable!(HTLCDestination,
256256

257257
#[cfg(anchors)]
258258
/// A descriptor used to sign for a commitment transaction's anchor output.
259-
#[derive(Clone, Debug)]
259+
#[derive(Clone, Debug, PartialEq, Eq)]
260260
pub struct AnchorDescriptor {
261261
/// A unique identifier used along with `channel_value_satoshis` to re-derive the
262262
/// [`InMemorySigner`] required to sign `input`.
@@ -276,7 +276,7 @@ pub struct AnchorDescriptor {
276276

277277
#[cfg(anchors)]
278278
/// A descriptor used to sign for a commitment transaction's HTLC output.
279-
#[derive(Clone, Debug)]
279+
#[derive(Clone, Debug, PartialEq, Eq)]
280280
pub struct HTLCDescriptor {
281281
/// A unique identifier used along with `channel_value_satoshis` to re-derive the
282282
/// [`InMemorySigner`] required to sign `input`.
@@ -369,7 +369,7 @@ impl HTLCDescriptor {
369369

370370
#[cfg(anchors)]
371371
/// Represents the different types of transactions, originating from LDK, to be bumped.
372-
#[derive(Clone, Debug)]
372+
#[derive(Clone, Debug, PartialEq, Eq)]
373373
pub enum BumpTransactionEvent {
374374
/// Indicates that a channel featuring anchor outputs is to be closed by broadcasting the local
375375
/// commitment transaction. Since commitment transactions have a static feerate pre-agreed upon,

0 commit comments

Comments
 (0)