From 6b1b794ff4138b3b0ab8661b7edc18ac8a2249ef Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Tue, 13 Oct 2015 18:19:07 -0400 Subject: [PATCH] prevent excessive saving of wallet backups --- libraries/wallet/wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 2f6ba926..836c45a0 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -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( 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 );