From ae701a0d20fc5c7db925b88d4a8bcb4e6b16fdc2 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Sun, 2 Jul 2023 13:45:26 -0700 Subject: [PATCH] Expose CoinSelection struct members These are meant to be provided by the user, so they need to be exposed in the API. --- lightning/src/events/bump_transaction.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/events/bump_transaction.rs b/lightning/src/events/bump_transaction.rs index 91a069324..edb146ba2 100644 --- a/lightning/src/events/bump_transaction.rs +++ b/lightning/src/events/bump_transaction.rs @@ -361,12 +361,12 @@ impl Utxo { pub struct CoinSelection { /// The set of UTXOs (with at least 1 confirmation) to spend and use within a transaction /// requiring additional fees. - confirmed_utxos: Vec, + pub confirmed_utxos: Vec, /// An additional output tracking whether any change remained after coin selection. This output /// should always have a value above dust for its given `script_pubkey`. It should not be /// spent until the transaction it belongs to confirms to ensure mempool descendant limits are /// not met. This implies no other party should be able to spend it except us. - change_output: Option, + pub change_output: Option, } /// An abstraction over a bitcoin wallet that can perform coin selection over a set of UTXOs and can -- 2.39.5