From 77c18999a97cc3bc0a684766afb85dc1a623fc7e Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Fri, 17 May 2019 10:03:06 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20test=20by=20disabling=20confirmation,=20a?= =?UTF-8?q?s=20a=20result=20the=20block=20wont=20be=20con=E2=80=A6=20(#199?= =?UTF-8?q?6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- nano/core_test/node.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nano/core_test/node.cpp b/nano/core_test/node.cpp index ccf08ed5..e7c8fc55 100644 --- a/nano/core_test/node.cpp +++ b/nano/core_test/node.cpp @@ -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 ());