Skip to content

Commit

Permalink
Wait send confirmation before creating receive block
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0vity committed Feb 2, 2024
1 parent ebaba02 commit 48a0cbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nano/core_test/election_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ TEST (election_scheduler, no_vacancy)
.build_shared ();
ASSERT_EQ (nano::process_result::progress, node.process (*send).code);
node.process_confirmed (nano::election_status{ send });
// Receive block should not be activated by `activate_successors` as this will start an undesired election
std::this_thread::sleep_for (100ms);

auto receive = builder.make_block ()
.account (key.pub)
Expand Down

0 comments on commit 48a0cbb

Please sign in to comment.