prevent excessive saving of wallet backups

This commit is contained in:
Daniel Larimer 2015-10-13 18:19:07 -04:00 committed by theoreticalbts
parent 1423f80f40
commit 6b1b794ff4

View file

@ -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 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;
}
save_wallet_file();
FC_ASSERT( found_account );