Skip to content

Commit 6f83e22

Browse files
author
ChallengeDev210
committed
Merge rust-bitcoin/rust-bitcoin#932: Derive Eq for PSBT types
603e75e Derive Eq for PSBT types (Dr Maxim Orlovsky) Pull request description: Closes #931 ACKs for top commit: apoelstra: ACK 603e75e sanket1729: utACK 603e75e. Tree-SHA512: 8099e80aa2000b3d1284543b6bfab3edd45f8649519bd09b4d73d250bdb6cce5edf67a1e0e0cec61db23c358daca286061641da5ff5c2a8b4b030d1199707c94
2 parents 28aa02a + b4f73c3 commit 6f83e22

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/util/psbt/map/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const PSBT_IN_PROPRIETARY: u8 = 0xFC;
7979

8080
/// A key-value map for an input of the corresponding index in the unsigned
8181
/// transaction.
82-
#[derive(Clone, Default, Debug, PartialEq)]
82+
#[derive(Clone, Default, Debug, PartialEq, Eq)]
8383
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
8484
pub struct Input {
8585
/// The non-witness transaction this input spends from. Should only be

src/util/psbt/map/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const PSBT_OUT_PROPRIETARY: u8 = 0xFC;
4747

4848
/// A key-value map for an output of the corresponding index in the unsigned
4949
/// transaction.
50-
#[derive(Clone, Default, Debug, PartialEq)]
50+
#[derive(Clone, Default, Debug, PartialEq, Eq)]
5151
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
5252
pub struct Output {
5353
/// The redeem script for this output.

src/util/psbt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use self::map::Map;
4747
use util::bip32::{ExtendedPubKey, KeySource};
4848

4949
/// A Partially Signed Transaction.
50-
#[derive(Debug, Clone, PartialEq)]
50+
#[derive(Debug, Clone, PartialEq, Eq)]
5151
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
5252
pub struct PartiallySignedTransaction {
5353
/// The unsigned transaction, scriptSigs and witnesses for each input must be

0 commit comments

Comments
 (0)