Network selector (#3410)

* fixes regression allowing for networks to honor build and runtime selection

* clang-format
This commit is contained in:
Russel Waters 2021-08-02 06:22:15 -07:00 committed by GitHub
commit 957ebe10b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -702,7 +702,7 @@ std::error_code nano::handle_node_options (boost::program_options::variables_map
nano::raw_key junk1; nano::raw_key junk1;
junk1.clear (); junk1.clear ();
nano::uint256_union junk2 (0); nano::uint256_union junk2 (0);
nano::kdf kdf{ inactive_node->node->config.network_params.kdf_work}; nano::kdf kdf{ inactive_node->node->config.network_params.kdf_work };
kdf.phs (junk1, "", junk2); kdf.phs (junk1, "", junk2);
std::cout << "Testing time retrieval latency... " << std::flush; std::cout << "Testing time retrieval latency... " << std::flush;
nano::timer<std::chrono::nanoseconds> timer (nano::timer_state::started); nano::timer<std::chrono::nanoseconds> timer (nano::timer_state::started);

View file

@ -21,7 +21,7 @@ const std::string default_test_peer_network = nano::get_env_or_default ("NANO_TE
} }
nano::node_config::node_config () : nano::node_config::node_config () :
node_config (0, nano::logging (), nano::dev::network_params) node_config (0, nano::logging (), nano::network_params{ nano::network_constants::active_network })
{ {
} }