@@ -86,7 +86,7 @@ const HIGH_FREQUENCY_BUMP_INTERVAL: u32 = 1;
8686///
8787/// CSV and pubkeys are used as part of a witnessScript redeeming a balance output, amount is used
8888/// as part of the signature hash and revocation secret to generate a satisfying witness.
89- #[ derive( Clone , PartialEq ) ]
89+ #[ derive( Clone , PartialEq , Eq ) ]
9090pub ( crate ) struct RevokedOutput {
9191 per_commitment_point : PublicKey ,
9292 counterparty_delayed_payment_base_key : PublicKey ,
@@ -129,7 +129,7 @@ impl_writeable_tlv_based!(RevokedOutput, {
129129///
130130/// CSV is used as part of a witnessScript redeeming a balance output, amount is used as part
131131/// of the signature hash and revocation secret to generate a satisfying witness.
132- #[ derive( Clone , PartialEq ) ]
132+ #[ derive( Clone , PartialEq , Eq ) ]
133133pub ( crate ) struct RevokedHTLCOutput {
134134 per_commitment_point : PublicKey ,
135135 counterparty_delayed_payment_base_key : PublicKey ,
@@ -171,7 +171,7 @@ impl_writeable_tlv_based!(RevokedHTLCOutput, {
171171/// witnessScript.
172172///
173173/// The preimage is used as part of the witness.
174- #[ derive( Clone , PartialEq ) ]
174+ #[ derive( Clone , PartialEq , Eq ) ]
175175pub ( crate ) struct CounterpartyOfferedHTLCOutput {
176176 per_commitment_point : PublicKey ,
177177 counterparty_delayed_payment_base_key : PublicKey ,
@@ -204,7 +204,7 @@ impl_writeable_tlv_based!(CounterpartyOfferedHTLCOutput, {
204204///
205205/// HTLCOutputInCommitment (hash, timelock, directon) and pubkeys are used to generate a suitable
206206/// witnessScript.
207- #[ derive( Clone , PartialEq ) ]
207+ #[ derive( Clone , PartialEq , Eq ) ]
208208pub ( crate ) struct CounterpartyReceivedHTLCOutput {
209209 per_commitment_point : PublicKey ,
210210 counterparty_delayed_payment_base_key : PublicKey ,
@@ -234,7 +234,7 @@ impl_writeable_tlv_based!(CounterpartyReceivedHTLCOutput, {
234234///
235235/// Either offered or received, the amount is always used as part of the bip143 sighash.
236236/// Preimage is only included as part of the witness in former case.
237- #[ derive( Clone , PartialEq ) ]
237+ #[ derive( Clone , PartialEq , Eq ) ]
238238pub ( crate ) struct HolderHTLCOutput {
239239 preimage : Option < PaymentPreimage > ,
240240 amount : u64 ,
@@ -269,7 +269,7 @@ impl_writeable_tlv_based!(HolderHTLCOutput, {
269269/// A struct to describe the channel output on the funding transaction.
270270///
271271/// witnessScript is used as part of the witness redeeming the funding utxo.
272- #[ derive( Clone , PartialEq ) ]
272+ #[ derive( Clone , PartialEq , Eq ) ]
273273pub ( crate ) struct HolderFundingOutput {
274274 funding_redeemscript : Script ,
275275}
@@ -290,7 +290,7 @@ impl_writeable_tlv_based!(HolderFundingOutput, {
290290///
291291/// The generic API offers access to an outputs common attributes or allow transformation such as
292292/// finalizing an input claiming the output.
293- #[ derive( Clone , PartialEq ) ]
293+ #[ derive( Clone , PartialEq , Eq ) ]
294294pub ( crate ) enum PackageSolvingData {
295295 RevokedOutput ( RevokedOutput ) ,
296296 RevokedHTLCOutput ( RevokedHTLCOutput ) ,
@@ -444,7 +444,7 @@ impl_writeable_tlv_based_enum!(PackageSolvingData, ;
444444/// A malleable package might be aggregated with other packages to save on fees.
445445/// A untractable package has been counter-signed and aggregable will break cached counterparty
446446/// signatures.
447- #[ derive( Clone , PartialEq ) ]
447+ #[ derive( Clone , PartialEq , Eq ) ]
448448pub ( crate ) enum PackageMalleability {
449449 Malleable ,
450450 Untractable ,
@@ -459,7 +459,7 @@ pub(crate) enum PackageMalleability {
459459///
460460/// As packages are time-sensitive, we fee-bump and rebroadcast them at scheduled intervals.
461461/// Failing to confirm a package translate as a loss of funds for the user.
462- #[ derive( Clone , PartialEq ) ]
462+ #[ derive( Clone , PartialEq , Eq ) ]
463463pub struct PackageTemplate {
464464 // List of onchain outputs and solving data to generate satisfying witnesses.
465465 inputs : Vec < ( BitcoinOutPoint , PackageSolvingData ) > ,
0 commit comments