Skip to content

Commit

Permalink
Merge pull request #1777 from AntelopeIO/GH-1694-ship-head-5.0
Browse files Browse the repository at this point in the history
[4.0 -> 5.0] Signal accepted_block after it is marked valid
  • Loading branch information
heifner authored Oct 16, 2023
2 parents dc1ff3e + 231f6aa commit a7090e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions unittests/chain_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ BOOST_AUTO_TEST_CASE( signal_validated_blocks ) try {
chain.produce_blocks(1);
validator.push_block(accepted_bsp->block);

auto trace_ptr = chain.create_account("hello"_n);
chain.produce_block();
chain.create_account("hello"_n);
auto produced_block = chain.produce_block();
validator.push_block(accepted_bsp->block);
BOOST_CHECK(produced_block->calculate_id() == accepted_bsp->id);
BOOST_CHECK(accepted_bsp->id == validated_bsp->id);

} FC_LOG_AND_RETHROW()

Expand Down

0 comments on commit a7090e0

Please sign in to comment.