From: Matt Corallo Date: Tue, 19 Oct 2021 06:19:28 +0000 (+0000) Subject: Implement Clone, Hash, PartialEq for ClosingTransaction X-Git-Tag: v0.0.104~20^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=04d0cca87293f5a47812d19920686755892f8446;p=rust-lightning Implement Clone, Hash, PartialEq for ClosingTransaction 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. --- diff --git a/lightning/src/ln/chan_utils.rs b/lightning/src/ln/chan_utils.rs index ef106cc19..cbafbed67 100644 --- a/lightning/src/ln/chan_utils.rs +++ b/lightning/src/ln/chan_utils.rs @@ -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,