aboutsummaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-26 23:45:25 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-26 23:45:25 +0200
commit52af8c1582b0818f43832b79ad29f16e3a5165d0 (patch)
treeae22882baabf96b1d497d967cf08c7f8e1fc9f20 /src/daemon
parentMerge pull request #2356 (diff)
parentCleanup test impact of moving blockchain_db_types() (diff)
downloadmonero-52af8c1582b0818f43832b79ad29f16e3a5165d0.tar.xz
Merge pull request #2318
3dd34a49 Cleanup test impact of moving blockchain_db_types() (Howard Chu) 80344740 More DB support cleanup (Howard Chu) 4c7f8ac0 DB cleanup (Howard Chu)
Diffstat (limited to 'src/daemon')
-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;
}