From 6ddda6137cd1a19e446a9a81623290de8ff0d5b8 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Thu, 30 Nov 2023 12:14:49 +0100 Subject: [PATCH] spend: make coin selection helpers private They aren't externally called anymore --- src/spend.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spend.rs b/src/spend.rs index 363c01b5..1b11a339 100644 --- a/src/spend.rs +++ b/src/spend.rs @@ -179,7 +179,7 @@ pub struct CandidateCoin { /// /// Using this metric with `must_have_change: false` is equivalent to using /// [`LowestFee`]. -pub struct LowestFeeChangeCondition<'c, C> { +struct LowestFeeChangeCondition<'c, C> { /// The underlying [`LowestFee`] metric to use. pub lowest_fee: LowestFee<'c, C>, /// If `true`, only solutions with change will be found. @@ -230,7 +230,7 @@ where /// /// `must_have_change` indicates whether the transaction must have a change output. /// If `true`, the returned change amount will be positive. -pub fn select_coins_for_spend( +fn select_coins_for_spend( candidate_coins: &[CandidateCoin], base_tx: bitcoin::Transaction, change_txo: bitcoin::TxOut,