Network selector (#3410)
* fixes regression allowing for networks to honor build and runtime selection * clang-format
This commit is contained in:
parent
fcbcb5bddc
commit
957ebe10b9
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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 })
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue