Skip to content

Commit

Permalink
Merge pull request #35 from AntelopeIO/2compilewarns
Browse files Browse the repository at this point in the history
fix a couple compile warnings
  • Loading branch information
spoonincode authored Apr 16, 2024
2 parents 78f42de + ee2ca70 commit 3d65099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,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;
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

0 comments on commit 3d65099

Please sign in to comment.