Skip to content

Commit 72cc953

Browse files
committed
feat(psbt): Derive Clone for UtxoFilter
1 parent f38a7fc commit 72cc953

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/psbt/params.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pub struct ReplaceTx;
2828
pub type Rbf = ReplaceTx;
2929

3030
/// Parameters to create a PSBT.
31+
// TODO: Can we derive `Clone` for this?
3132
#[derive(Debug)]
3233
pub struct PsbtParams<C> {
3334
/// Set of selected UTXO outpoints.
@@ -465,6 +466,7 @@ pub enum SelectionStrategy {
465466
/// for coin selection. This has a default implementation that enables selection of all
466467
/// txouts passed to it.
467468
#[allow(clippy::type_complexity)]
469+
#[derive(Clone)]
468470
pub(crate) struct UtxoFilter(
469471
pub Arc<dyn Fn(&FullTxOut<ConfirmationBlockTime>) -> bool + Send + Sync>,
470472
);

0 commit comments

Comments
 (0)