Skip to content

Commit

Permalink
Merge pull request #179 from VanGrx/random_x_protobuf
Browse files Browse the repository at this point in the history
Change name of the file where safex account keys are stored
  • Loading branch information
VanGrx authored Nov 18, 2019
2 parents 8bc1c57 + 46dfee0 commit 1ad0a62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ void do_prepare_file_names(const std::string& file_path, std::string& keys_file,
{//provided wallet file name
keys_file += ".keys";
}
if(string_tools::get_extension(safex_keys_file) == "safex_keys")
if(string_tools::get_extension(safex_keys_file) == "safex_account_keys")
{//provided keys file name
wallet_file = string_tools::cut_off_extension(wallet_file);
}else
{//provided wallet file name
safex_keys_file += ".safex_keys";
safex_keys_file += ".safex_account_keys";
}
}

Expand Down Expand Up @@ -2750,7 +2750,7 @@ bool wallet::store_keys(const std::string& keys_file_name, const epee::wipeable_
std::string buf;
r = ::serialization::dump_binary(safex_keys_file_data, buf);
r = r && epee::file_io_utils::save_string_to_file(safex_keys_file_name, buf); //and never touch wallet_keys_file again, only read
CHECK_AND_ASSERT_MES(r, false, "failed to generate wallet safex keys file " << safex_keys_file_name);
CHECK_AND_ASSERT_MES(r, false, "failed to generate wallet safex account keys file " << safex_keys_file_name);

return true;
}
Expand Down

0 comments on commit 1ad0a62

Please sign in to comment.