We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Clone
UtxoFilter
1 parent f38a7fc commit 72cc953Copy full SHA for 72cc953
1 file changed
src/psbt/params.rs
@@ -28,6 +28,7 @@ pub struct ReplaceTx;
28
pub type Rbf = ReplaceTx;
29
30
/// Parameters to create a PSBT.
31
+// TODO: Can we derive `Clone` for this?
32
#[derive(Debug)]
33
pub struct PsbtParams<C> {
34
/// Set of selected UTXO outpoints.
@@ -465,6 +466,7 @@ pub enum SelectionStrategy {
465
466
/// for coin selection. This has a default implementation that enables selection of all
467
/// txouts passed to it.
468
#[allow(clippy::type_complexity)]
469
+#[derive(Clone)]
470
pub(crate) struct UtxoFilter(
471
pub Arc<dyn Fn(&FullTxOut<ConfirmationBlockTime>) -> bool + Send + Sync>,
472
);
0 commit comments