Add bugfix address derivation

This commit is contained in:
Aditya Kulkarni
2019-10-19 16:41:27 -07:00
parent 3ebc46185c
commit 611974c5fa
2 changed files with 45 additions and 14 deletions

View File

@@ -463,19 +463,7 @@ impl Command for FixBip39BugCommand {
fn exec(&self, _args: &[&str], lightclient: &LightClient) -> String {
use crate::lightwallet::bugs::BugBip39Derivation;
let r = if BugBip39Derivation::has_bug(&lightclient.wallet.read().unwrap()) {
object!{
"has_bug" => true,
"fixed" => false,
}
} else {
object!{
"has_bug" => false,
"fixed" => false,
}
};
r.pretty(2)
BugBip39Derivation::fix_bug(lightclient)
}
}