Skip to content

Commit

Permalink
Test 2
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
RickiNano committed Jan 19, 2025
1 parent ec86902 commit a76c95e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nano/node/nodeconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ nano::error nano::node_config::deserialize_toml (nano::tomlconfig & toml)
toml.get<bool> ("allow_local_peers", allow_local_peers);
toml.get<unsigned> (signature_checker_threads_key, signature_checker_threads);

database_backend = get_database_backend (toml);
//database_backend = get_database_backend (toml);

if (toml.has_key ("lmdb"))
{
Expand Down Expand Up @@ -678,7 +678,7 @@ nano::database_backend nano::node_config::get_database_backend (nano::tomlconfig
if (std::getenv ("BACKEND"))
{
// Use environment settings
return std::getenv ("BACKEND") == "rocksdb" ? nano::database_backend::rocksdb : nano::database_backend::lmdb;
return std::string (std::getenv ("BACKEND")) == "rocksdb" ? nano::database_backend::rocksdb : nano::database_backend::lmdb;
}
if (toml.has_key ("database_backend"))
{
Expand Down
2 changes: 1 addition & 1 deletion nano/node/nodeconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class node_config
uint64_t max_pruning_depth{ 0 };
nano::rocksdb_config rocksdb_config;
nano::lmdb_config lmdb_config;
nano::database_backend database_backend{ nano::database_backend::lmdb };
nano::database_backend database_backend{ std::string (std::getenv ("BACKEND") ? std::getenv ("BACKEND") : "") == "rocksdb" ? nano::database_backend::rocksdb : nano::database_backend::lmdb};
bool enable_upnp{ true };
std::size_t max_ledger_notifications{ 8 };

Expand Down

0 comments on commit a76c95e

Please sign in to comment.