From 782dd8c29b487e17517c69ff089aaafacb33611b Mon Sep 17 00:00:00 2001 From: jaspervdm Date: Wed, 16 Dec 2020 15:18:55 +0100 Subject: [PATCH] Fix error when estimating fees for selection strategies (#545) --- 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 82ee94c0..2f53b1db 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 e476cc14..1db6bede 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 } },