From 42b895fda92df70aca221c80a5b3b9e6271bdd36 Mon Sep 17 00:00:00 2001 From: Ed Ball Date: Fri, 20 Jan 2023 11:23:39 +0100 Subject: [PATCH 01/19] Expose TxParams via new tx_builder::get_params() method --- src/wallet/tx_builder.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wallet/tx_builder.rs b/src/wallet/tx_builder.rs index 6d52b8d90..f9385de31 100644 --- a/src/wallet/tx_builder.rs +++ b/src/wallet/tx_builder.rs @@ -123,9 +123,8 @@ pub struct TxBuilder<'a, D, Cs, Ctx> { } /// The parameters for transaction creation sans coin selection algorithm. -//TODO: TxParams should eventually be exposed publicly. #[derive(Default, Debug, Clone)] -pub(crate) struct TxParams { +pub struct TxParams { pub(crate) recipients: Vec<(Script, u64)>, pub(crate) drain_wallet: bool, pub(crate) drain_to: Option