Fix test by disabling confirmation, as a result the block wont be con… (#1996)

* Fix test by disabling confirmation, as a result the block wont be confirmed, so work is recalculated, instead of confirming and creating a new block

* Copy pasta error, no need for wallet, not used
This commit is contained in:
Russel Waters 2019-05-17 10:03:06 -04:00 committed by GitHub
commit 77c18999a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2570,8 +2570,10 @@ TEST (node, dont_write_lock_node)
TEST (active_difficulty, recalculate_work)
{
nano::system system (24000, 1);
auto & node1 (*system.nodes[0]);
nano::system system;
nano::node_config node_config (24000, system.logging);
node_config.enable_voting = false;
auto & node1 = *system.add_node (node_config);
nano::genesis genesis;
nano::keypair key1;
ASSERT_EQ (node1.network_params.network.publish_threshold, node1.active.active_difficulty ());