Skip to content

Commit

Permalink
Merge pull request #1778 from AntelopeIO/GH-1694-ship-head-main
Browse files Browse the repository at this point in the history
[5.0 -> main] Signal accepted_block after it is marked valid
heifner authored Oct 16, 2023
2 parents fc7b07a + b50250a commit 0544e2c
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
@@ -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()

0 comments on commit 0544e2c

Please sign in to comment.