mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-11-02 05:07:01 +00:00
Add bugfix address derivation
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user