|
|
@ -92,6 +92,7 @@ int main(int ac, const char* av[]) {
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// if not given assume it is located in ~./bitmonero/lmdb2 folder
|
|
|
|
// if not given assume it is located in ~./bitmonero/lmdb2 folder
|
|
|
|
|
|
|
|
// or ~./bitmonero/testnet/lmdb2 for testnet network
|
|
|
|
custom_db_path_str = blockchain_path.parent_path().string()
|
|
|
|
custom_db_path_str = blockchain_path.parent_path().string()
|
|
|
|
+ string("/lmdb2");
|
|
|
|
+ string("/lmdb2");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -99,7 +100,6 @@ int main(int ac, const char* av[]) {
|
|
|
|
custom_db_path_str = xmreg::remove_trailing_path_separator(custom_db_path_str);
|
|
|
|
custom_db_path_str = xmreg::remove_trailing_path_separator(custom_db_path_str);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string deamon_url {*deamon_url_opt};
|
|
|
|
string deamon_url {*deamon_url_opt};
|
|
|
|
|
|
|
|
|
|
|
|
if (testnet)
|
|
|
|
if (testnet)
|
|
|
|