prevent excessive saving of wallet backups
This commit is contained in:
parent
1423f80f40
commit
6b1b794ff4
1 changed files with 2 additions and 1 deletions
|
|
@ -2694,11 +2694,12 @@ bool wallet_api::import_account_keys( string filename, string password, string s
|
||||||
const auto plain_text = fc::aes_decrypt( password_hash, encrypted_key );
|
const auto plain_text = fc::aes_decrypt( password_hash, encrypted_key );
|
||||||
const auto private_key = fc::raw::unpack<private_key_type>( plain_text );
|
const auto private_key = fc::raw::unpack<private_key_type>( plain_text );
|
||||||
|
|
||||||
import_key( dest_account_name, string( graphene::utilities::key_to_wif( private_key ) ) );
|
my->import_key( dest_account_name, string( graphene::utilities::key_to_wif( private_key ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
save_wallet_file();
|
||||||
|
|
||||||
FC_ASSERT( found_account );
|
FC_ASSERT( found_account );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue