mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-01 03:12:15 +00:00
Default sync for height
This commit is contained in:
parent
89fbe097da
commit
4f946da774
@ -658,7 +658,7 @@ impl Command for HeightCommand {
|
|||||||
return format!("Didn't understand arguments\n{}", self.help());
|
return format!("Didn't understand arguments\n{}", self.help());
|
||||||
}
|
}
|
||||||
|
|
||||||
if args.len() == 1 && args[0].trim() == "true" {
|
if args.len() == 0 || (args.len() == 1 && args[0].trim() == "true") {
|
||||||
match lightclient.do_sync(true) {
|
match lightclient.do_sync(true) {
|
||||||
Ok(_) => format!("{}", object! { "height" => lightclient.last_scanned_height()}.pretty(2)),
|
Ok(_) => format!("{}", object! { "height" => lightclient.last_scanned_height()}.pretty(2)),
|
||||||
Err(e) => e
|
Err(e) => e
|
||||||
|
Loading…
Reference in New Issue
Block a user