rename ringdb-dir

This commit is contained in:
wowario 2023-02-12 12:15:50 +03:00
parent 0fc75eb44e
commit 7174ff9bcb
No known key found for this signature in database
GPG key ID: 793504B449C69220
4 changed files with 4 additions and 4 deletions

View file

@ -132,7 +132,7 @@ static std::string get_default_db_path()
boost::filesystem::path dir = tools::get_default_data_dir();
// remove .bitmonero, replace with .shared-ringdb
dir = dir.remove_filename();
dir /= ".shared-ringdb";
dir /= ".wow-shared-ringdb";
return dir.string();
}

View file

@ -71,7 +71,7 @@ namespace {
boost::filesystem::path dir = tools::get_default_data_dir();
// remove .bitmonero, replace with .shared-ringdb
dir = dir.remove_filename();
dir /= ".shared-ringdb";
dir /= ".wow-shared-ringdb";
if (nettype == cryptonote::TESTNET)
dir /= "testnet";
else if (nettype == cryptonote::STAGENET)

View file

@ -258,7 +258,7 @@ struct options {
const command_line::arg_descriptor<bool> testnet = {"testnet", tools::wallet2::tr("For testnet. Daemon must also be launched with --testnet flag"), false};
const command_line::arg_descriptor<bool> stagenet = {"stagenet", tools::wallet2::tr("For stagenet. Daemon must also be launched with --stagenet flag"), false};
const command_line::arg_descriptor<std::string, false, true, 2> shared_ringdb_dir = {
"shared-ringdb-dir", tools::wallet2::tr("Set shared ring database path"),
"wow-shared-ringdb-dir", tools::wallet2::tr("Set shared ring database path"),
get_default_ringdb_path(),
{{ &testnet, &stagenet }},
[](std::array<bool, 2> testnet_stagenet, bool defaulted, std::string val)->std::string {

View file

@ -1277,7 +1277,7 @@ private:
}
BEGIN_SERIALIZE_OBJECT()
MAGIC_FIELD("monero wallet cache")
MAGIC_FIELD("wownero wallet cache")
VERSION_FIELD(1)
FIELD(m_blockchain)
FIELD(m_transfers)