Skip to content

Commit 8cffeb6

Browse files
committed
Add relevant trait derives for bump_transaction structs
Notably including `Hash`/`Eq`/`Ord` for structs which may be used in maps.
1 parent 5f120b1 commit 8cffeb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/events/bump_transaction.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ pub enum BumpTransactionEvent {
341341
/// An input that must be included in a transaction when performing coin selection through
342342
/// [`CoinSelectionSource::select_confirmed_utxos`]. It is guaranteed to be a SegWit input, so it
343343
/// must have an empty [`TxIn::script_sig`] when spent.
344+
#[derive(Clone, Debug, Hash, PartialOrd, Ord, PartialEq, Eq)]
344345
pub struct Input {
345346
/// The unique identifier of the input.
346347
pub outpoint: OutPoint,
@@ -354,7 +355,7 @@ pub struct Input {
354355

355356
/// An unspent transaction output that is available to spend resulting from a successful
356357
/// [`CoinSelection`] attempt.
357-
#[derive(Clone, Debug)]
358+
#[derive(Clone, Debug, Hash, PartialOrd, Ord, PartialEq, Eq)]
358359
pub struct Utxo {
359360
/// The unique identifier of the output.
360361
pub outpoint: OutPoint,
@@ -421,6 +422,7 @@ impl Utxo {
421422

422423
/// The result of a successful coin selection attempt for a transaction requiring additional UTXOs
423424
/// to cover its fees.
425+
#[derive(Clone, Debug)]
424426
pub struct CoinSelection {
425427
/// The set of UTXOs (with at least 1 confirmation) to spend and use within a transaction
426428
/// requiring additional fees.

0 commit comments

Comments
 (0)