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:
parent
0096d2086b
commit
e4e2220d92
1 changed files with 1 additions and 2 deletions
|
|
@ -31,7 +31,6 @@ nano::error nano::rocksdb_config::deserialize_toml (nano::tomlconfig & toml)
|
||||||
|
|
||||||
bool nano::rocksdb_config::using_rocksdb_in_tests ()
|
bool nano::rocksdb_config::using_rocksdb_in_tests ()
|
||||||
{
|
{
|
||||||
static nano::network_constants network_constants;
|
|
||||||
auto use_rocksdb_str = std::getenv ("TEST_USE_ROCKSDB");
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue