Skip to content

Commit

Permalink
Set default backend
Browse files Browse the repository at this point in the history
Fixed LMDB test

Update nodeconfig.hpp

Update nodeconfig.hpp
  • Loading branch information
RickiNano committed Oct 14, 2024
1 parent a719ac3 commit 7dc0416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nano/node/nodeconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ 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::rocksdb_config::using_rocksdb_in_tests () ? nano::database_backend::rocksdb : nano::database_backend::automatic };
nano::database_backend database_backend{ std::string (std::getenv ("BACKEND") ? std::getenv ("BACKEND") : "") == "rocksdb" ? nano::database_backend::rocksdb : std::string (std::getenv ("BACKEND") ? std::getenv ("BACKEND") : "") == "lmdb" ? nano::database_backend::lmdb
: nano::database_backend::automatic };
bool enable_upnp{ true };
nano::vote_cache_config vote_cache;
nano::rep_crawler_config rep_crawler;
Expand Down

0 comments on commit 7dc0416

Please sign in to comment.