Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/dpos-pbft-bos-upgrade' i…
Browse files Browse the repository at this point in the history
…nto feature/dpos-pbft-bos-upgrade
  • Loading branch information
VincentOCL committed Apr 30, 2019
2 parents 9f0cde3 + ee63bfa commit cd99520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittests/pbft_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ BOOST_AUTO_TEST_CASE(can_advance_lib_after_upgrade) {
BOOST_CHECK_EQUAL(ctrl.last_irreversible_block_num(), 0);
BOOST_CHECK_EQUAL(ctrl.head_block_num(), 2);
tester.produce_blocks(150);
BOOST_CHECK_EQUAL(ctrl.last_irreversible_block_num(), 150);
BOOST_CHECK_EQUAL(ctrl.last_irreversible_block_num(), 151);
BOOST_CHECK_EQUAL(ctrl.head_block_num(), 152);

is_upgraded = ctrl.is_upgraded();
BOOST_CHECK_EQUAL(is_upgraded, true);

tester.produce_blocks(10);
BOOST_CHECK_EQUAL(ctrl.pending_pbft_lib(), false);
BOOST_CHECK_EQUAL(ctrl.last_irreversible_block_num(), 150);
BOOST_CHECK_EQUAL(ctrl.last_irreversible_block_num(), 151);
BOOST_CHECK_EQUAL(ctrl.head_block_num(), 162);

pbft_ctrl.maybe_pbft_prepare();
Expand Down

0 comments on commit cd99520

Please sign in to comment.