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:
parent
f8da09fe2f
commit
77c18999a9
1 changed files with 4 additions and 2 deletions
|
@ -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 ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue