Fix error when estimating fees for selection strategies (#545)

This commit is contained in:
jaspervdm 2020-12-16 15:18:55 +01:00 committed by GitHub
parent f4f4184283
commit 782dd8c29b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -332,6 +332,10 @@ where
Ok(()) Ok(())
})?; })?;
if args.estimate_selection_strategies {
return Ok(());
}
let tor_config = match tor_config { let tor_config = match tor_config {
Some(mut c) => { Some(mut c) => {
c.skip_send_attempt = Some(args.skip_tor); c.skip_send_attempt = Some(args.skip_tor);

View file

@ -483,7 +483,9 @@ pub fn parse_send_args(args: &ArgMatches) -> Result<command::SendArgs, ParseErro
false => match SlatepackAddress::try_from(dest) { false => match SlatepackAddress::try_from(dest) {
Ok(a) => Some(a), Ok(a) => Some(a),
Err(_) => { 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 None
} }
}, },