Expose CoinSelection struct members
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Sun, 2 Jul 2023 20:45:26 +0000 (13:45 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Tue, 11 Jul 2023 20:34:42 +0000 (13:34 -0700)
These are meant to be provided by the user, so they need to be exposed
in the API.

lightning/src/events/bump_transaction.rs

index 91a069324ddc2558d9fdba8614286dff016825a6..edb146ba2159f9579dc36aff8789277e040221bb 100644 (file)
@@ -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<Utxo>,
+       pub confirmed_utxos: Vec<Utxo>,
        /// 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<TxOut>,
+       pub change_output: Option<TxOut>,
 }
 
 /// An abstraction over a bitcoin wallet that can perform coin selection over a set of UTXOs and can