sync for imported privkeys from 0

This commit is contained in:
DenioD
2020-10-01 20:23:43 +02:00
parent ac696847c4
commit 980c341d0e
3 changed files with 9 additions and 6 deletions

View File

@@ -696,10 +696,13 @@ impl Command for TImportCommand {
}
fn exec(&self, args: &[&str], lightclient: &LightClient) -> String {
let key = args[0];
if args.len() < 1 || args.len() > 2 {
return format!("Insufficient arguments\n\n{}", self.help());
}
let r = match lightclient.do_import_tk(key.to_string()){
let key = args[0];
let r = match lightclient.do_import_tk(key.to_string(), 0) {
Ok(r) => r.pretty(2),
Err(e) => return format!("Error: {}", e),
};