aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-08-20 13:37:19 +0100
committerHoward Chu <hyc@symas.com>2017-08-20 13:57:36 +0100
commit80344740bdd3c61c39a8bcac67a4858549eab505 (patch)
tree62155f343bd3367b1085e81569bf91d9d7852428 /src/daemon/main.cpp
parentDB cleanup (diff)
downloadmonero-80344740bdd3c61c39a8bcac67a4858549eab505.tar.xz
More DB support cleanup
Hide DB types from db_types.h - no reason to recompile dependencies when DB types change. Also remove lingering in-memory DB references, they've been obsolete since 9e82b694da120708652871b55f639d1ef306a7ec
Diffstat (limited to 'src/daemon/main.cpp')
-rw-r--r--src/daemon/main.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index 19dd02171..456eeee64 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -145,13 +145,10 @@ int main(int argc, char const * argv[])
std::string db_type = command_line::get_arg(vm, command_line::arg_db_type);
// verify that blockchaindb type is valid
- if(cryptonote::blockchain_db_types.count(db_type) == 0)
+ if(!cryptonote::blockchain_valid_db_type(db_type))
{
- std::cout << "Invalid database type (" << db_type << "), available types are:" << std::endl;
- for (const auto& type : cryptonote::blockchain_db_types)
- {
- std::cout << "\t" << type << std::endl;
- }
+ std::cout << "Invalid database type (" << db_type << "), available types are: " <<
+ cryptonote::blockchain_db_types(", ") << std::endl;
return 0;
}