Implement Clone, Hash, PartialEq for ClosingTransaction
authorMatt Corallo <git@bluematt.me>
Tue, 19 Oct 2021 06:19:28 +0000 (06:19 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 29 Nov 2021 01:30:44 +0000 (01:30 +0000)
This is a public struct intended to be used as an object by users,
so it should likely have common implementations, given they're
trivial.

lightning/src/ln/chan_utils.rs

index ef106cc195ab80780d72d070219060e42d7136a1..cbafbed67bdf20a7e093f97b5531ace7c8452f26 100644 (file)
@@ -940,6 +940,7 @@ impl BuiltCommitmentTransaction {
 ///
 /// This class can be used inside a signer implementation to generate a signature given the relevant
 /// secret key.
+#[derive(Clone, Hash, PartialEq)]
 pub struct ClosingTransaction {
        to_holder_value_sat: u64,
        to_counterparty_value_sat: u64,