rename ringdb-dir
This commit is contained in:
parent
a177241046
commit
c7190cdd0f
|
@ -132,7 +132,7 @@ static std::string get_default_db_path()
|
||||||
boost::filesystem::path dir = tools::get_default_data_dir();
|
boost::filesystem::path dir = tools::get_default_data_dir();
|
||||||
// remove .bitmonero, replace with .shared-ringdb
|
// remove .bitmonero, replace with .shared-ringdb
|
||||||
dir = dir.remove_filename();
|
dir = dir.remove_filename();
|
||||||
dir /= ".shared-ringdb";
|
dir /= ".wow-shared-ringdb";
|
||||||
return dir.string();
|
return dir.string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace {
|
||||||
boost::filesystem::path dir = tools::get_default_data_dir();
|
boost::filesystem::path dir = tools::get_default_data_dir();
|
||||||
// remove .bitmonero, replace with .shared-ringdb
|
// remove .bitmonero, replace with .shared-ringdb
|
||||||
dir = dir.remove_filename();
|
dir = dir.remove_filename();
|
||||||
dir /= ".shared-ringdb";
|
dir /= ".wow-shared-ringdb";
|
||||||
if (nettype == cryptonote::TESTNET)
|
if (nettype == cryptonote::TESTNET)
|
||||||
dir /= "testnet";
|
dir /= "testnet";
|
||||||
else if (nettype == cryptonote::STAGENET)
|
else if (nettype == cryptonote::STAGENET)
|
||||||
|
|
|
@ -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> 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<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 = {
|
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(),
|
get_default_ringdb_path(),
|
||||||
{{ &testnet, &stagenet }},
|
{{ &testnet, &stagenet }},
|
||||||
[](std::array<bool, 2> testnet_stagenet, bool defaulted, std::string val)->std::string {
|
[](std::array<bool, 2> testnet_stagenet, bool defaulted, std::string val)->std::string {
|
||||||
|
|
|
@ -1279,7 +1279,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
BEGIN_SERIALIZE_OBJECT()
|
BEGIN_SERIALIZE_OBJECT()
|
||||||
MAGIC_FIELD("monero wallet cache")
|
MAGIC_FIELD("wownero wallet cache")
|
||||||
VERSION_FIELD(1)
|
VERSION_FIELD(1)
|
||||||
FIELD(m_blockchain)
|
FIELD(m_blockchain)
|
||||||
FIELD(m_transfers)
|
FIELD(m_transfers)
|
||||||
|
|
Loading…
Reference in New Issue