Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a couple compile warnings #35

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ chain::transaction_trace_ptr make_transaction_trace( const packed_transaction_pt
auto make_block( uint32_t block_num ) {
static uint64_t unique_num = 0;
++unique_num;
heifner marked this conversation as resolved.
Show resolved Hide resolved
chain::block_id_type block_id = make_block_id(block_num);
block_id._hash[3] = unique_num;
name producer = "brianj"_n;
chain::signed_block_ptr block = std::make_shared<chain::signed_block>();
block->producer = producer;
Expand Down
4 changes: 2 additions & 2 deletions unittests/producer_schedule_if_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ BOOST_FIXTURE_TEST_CASE( proposer_policy_progression_test, validating_tester ) t
vector<producer_authority> prev_sch = {
producer_authority{"eosio"_n, block_signing_authority_v0{1, {{get_public_key("eosio"_n, "active"), 1}}}}};
BOOST_CHECK_EQUAL( true, compare_schedules( prev_sch, control->active_producers() ) );
BOOST_CHECK_EQUAL( 0, control->active_producers().version );
BOOST_CHECK_EQUAL( 0u, control->active_producers().version );

// set a new proposer policy sch1
set_producers( {"alice"_n} );
Expand All @@ -140,7 +140,7 @@ BOOST_FIXTURE_TEST_CASE( proposer_policy_progression_test, validating_tester ) t
produce_blocks(config::producer_repetitions);

// sch1 cannot become active before one round of production
BOOST_CHECK_EQUAL( 0, control->active_producers().version );
BOOST_CHECK_EQUAL( 0u, control->active_producers().version );
BOOST_CHECK_EQUAL( true, compare_schedules( prev_sch, control->active_producers() ) );

// set another ploicy to have multiple pending different active time policies
Expand Down
Loading