Skip to content

Commit

Permalink
GH-1694 Verify produced block matches validated block and accepted block
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Oct 13, 2023
1 parent 03d53b7 commit c561ba8
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 c561ba8

Please sign in to comment.