From e60ec62d1143cca5009e81fd9e84f15b169c950e Mon Sep 17 00:00:00 2001 From: jaspervdm Date: Wed, 16 Dec 2020 15:18:40 +0100 Subject: [PATCH] [5.0.x] Fix error when estimating fees for selection strategies (#548) --- controller/src/command.rs | 4 ++++ src/cmd/wallet_args.rs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/controller/src/command.rs b/controller/src/command.rs index 82ee94c07..2f53b1dbe 100644 --- a/controller/src/command.rs +++ b/controller/src/command.rs @@ -332,6 +332,10 @@ where Ok(()) })?; + if args.estimate_selection_strategies { + return Ok(()); + } + let tor_config = match tor_config { Some(mut c) => { c.skip_send_attempt = Some(args.skip_tor); diff --git a/src/cmd/wallet_args.rs b/src/cmd/wallet_args.rs index e476cc14e..1db6bedeb 100644 --- a/src/cmd/wallet_args.rs +++ b/src/cmd/wallet_args.rs @@ -483,7 +483,9 @@ pub fn parse_send_args(args: &ArgMatches) -> Result match SlatepackAddress::try_from(dest) { Ok(a) => Some(a), Err(_) => { - println!("No recipient Slatepack address or provided address invalid. No payment proof will be requested."); + if !estimate_selection_strategies { + println!("No recipient Slatepack address or provided address invalid. No payment proof will be requested."); + } None } },