Add Eq and PartialEq traits on the Transaction type
This commit is contained in:
parent
81e208222a
commit
2f62377eec
@ -96,7 +96,7 @@ impl From<AddressIndex> for BdkAddressIndex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A wallet transaction
|
/// A wallet transaction
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, PartialEq, Eq, Default)]
|
||||||
pub struct TransactionDetails {
|
pub struct TransactionDetails {
|
||||||
pub transaction: Option<Arc<Transaction>>,
|
pub transaction: Option<Arc<Transaction>>,
|
||||||
/// Transaction id.
|
/// Transaction id.
|
||||||
@ -279,7 +279,7 @@ impl From<&bdk::bitcoin::blockdata::transaction::TxIn> for TxIn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A Bitcoin transaction.
|
/// A Bitcoin transaction.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct Transaction {
|
pub struct Transaction {
|
||||||
internal: BdkTransaction,
|
internal: BdkTransaction,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user