Skip to content

Commit

Permalink
Fix a TSAN issue in active_transactions.confirm_new (nanocurrency#4582)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsiganos authored Apr 24, 2024
1 parent 368d8e2 commit 0505fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nano/core_test/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,8 @@ TEST (active_transactions, confirm_new)
// Add key to node2
system.wallet (1)->insert_adhoc (nano::dev::genesis_key.prv);
// Let node2 know about the block
ASSERT_TIMELY (5s, node2.block (send->hash ()));
auto send_copy = nano::send_block_builder ().make_block ().from (*send).build ();
ASSERT_TIMELY (5s, node2.block (send_copy->hash ()));
// Wait confirmation
ASSERT_TIMELY (5s, node1.ledger.cemented_count () == 2);
ASSERT_TIMELY (5s, node2.ledger.cemented_count () == 2);
Expand Down

0 comments on commit 0505fb6

Please sign in to comment.