Removing check for is_dev_network within using_rocksdb_in_tests as it's redundant and removing static instantiation of network_constants.

This commit is contained in:
clemahieu 2021-08-09 09:22:19 +01:00
commit e4e2220d92
No known key found for this signature in database
GPG key ID: 43708520C8DFB938

View file

@ -31,7 +31,6 @@ nano::error nano::rocksdb_config::deserialize_toml (nano::tomlconfig & toml)
bool nano::rocksdb_config::using_rocksdb_in_tests ()
{
static nano::network_constants network_constants;
auto use_rocksdb_str = std::getenv ("TEST_USE_ROCKSDB");
return network_constants.is_dev_network () && use_rocksdb_str && (boost::lexical_cast<int> (use_rocksdb_str) == 1);
return use_rocksdb_str && (boost::lexical_cast<int> (use_rocksdb_str) == 1);
}