mirror of
https://github.com/monero-project/monero.git
synced 2025-12-15 10:32:18 -05:00
Merge pull request #2313
3dd34a49Cleanup test impact of moving blockchain_db_types() (Howard Chu)80344740More DB support cleanup (Howard Chu)4c7f8ac0DB cleanup (Howard Chu)
This commit is contained in:
commit
ff0afc196e
14 changed files with 105 additions and 192 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue