From: Wilmer Paulino Date: Sun, 2 Jul 2023 20:45:26 +0000 (-0700) Subject: Expose CoinSelection struct members X-Git-Tag: v0.0.116-rc1~5^2~4 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=ae701a0d20fc5c7db925b88d4a8bcb4e6b16fdc2;p=rust-lightning Expose CoinSelection struct members These are meant to be provided by the user, so they need to be exposed in the API. --- 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