mirror of
https://github.com/mimblewimble/grin-wallet.git
synced 2025-01-20 19:11:09 +03:00
Fix error when estimating fees for selection strategies (#545)
This commit is contained in:
parent
f4f4184283
commit
782dd8c29b
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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(_) => {
|
||||
if !estimate_selection_strategies {
|
||||
println!("No recipient Slatepack address or provided address invalid. No payment proof will be requested.");
|
||||
}
|
||||
None
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue