Skip to content

Commit b4f73c3

Browse files
committed
Derive Eq for PSBT types
1 parent 2f7fc0e commit b4f73c3

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)