Skip to content

Commit

Permalink
Use boost ptree double get instead of std::stod
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislinegar committed Jun 17, 2019
1 parent d0c43df commit 30892ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/core_test/websocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ TEST (websocket, subscribe_active_difficulty)
nano::from_string_hex (message_contents.get<std::string> ("network_current"), network_current);
ASSERT_EQ (network_current, node1->active.active_difficulty ());

double multiplier = std::stod (message_contents.get<std::string> ("multiplier"));
double multiplier = message_contents.get<double> ("multiplier");
ASSERT_NEAR (multiplier, nano::difficulty::to_multiplier (node1->active.active_difficulty (), node1->network_params.network.publish_threshold), 1e-6);

node1->stop ();
Expand Down

0 comments on commit 30892ad

Please sign in to comment.