Skip to content

Commit 04d0cca

Browse files
committed
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.
1 parent 1a74367 commit 04d0cca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/chan_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ impl BuiltCommitmentTransaction {
940940
///
941941
/// This class can be used inside a signer implementation to generate a signature given the relevant
942942
/// secret key.
943+
#[derive(Clone, Hash, PartialEq)]
943944
pub struct ClosingTransaction {
944945
to_holder_value_sat: u64,
945946
to_counterparty_value_sat: u64,

0 commit comments

Comments
 (0)