Skip to content

Commit

Permalink
Fix node.block_confirm test (#4666)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev authored Jul 2, 2024
1 parent 6a802b2 commit 0b2dcf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nano/core_test/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,6 @@ TEST (node, block_confirm)
auto & node2 (*system.nodes[1]);
nano::keypair key;
nano::state_block_builder builder;
system.wallet (1)->insert_adhoc (nano::dev::genesis_key.prv);
auto send1 = builder.make_block ()
.account (nano::dev::genesis_key.pub)
.previous (nano::dev::genesis->hash ())
Expand All @@ -1790,6 +1789,8 @@ TEST (node, block_confirm)
node2.start_election (send1_copy);
std::shared_ptr<nano::election> election;
ASSERT_TIMELY (5s, election = node2.active.election (send1_copy->qualified_root ()));
// Make node2 genesis representative so it can vote
system.wallet (1)->insert_adhoc (nano::dev::genesis_key.prv);
ASSERT_TIMELY_EQ (10s, node1.active.recently_cemented.list ().size (), 1);
}

Expand Down

0 comments on commit 0b2dcf1

Please sign in to comment.