Skip to content

Commit

Permalink
[5.0.x] Fix error when estimating fees for selection strategies (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdm committed Dec 16, 2020
1 parent 75bd8cd commit e60ec62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions controller/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion src/cmd/wallet_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,9 @@ pub fn parse_send_args(args: &ArgMatches) -> Result<command::SendArgs, ParseErro
false => 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
}
},
Expand Down

0 comments on commit e60ec62

Please sign in to comment.