diff --git a/plugins/chain_plugin/test/test_trx_finality_status_processing.cpp b/plugins/chain_plugin/test/test_trx_finality_status_processing.cpp index 5bff8f075c..39ef3c8419 100644 --- a/plugins/chain_plugin/test/test_trx_finality_status_processing.cpp +++ b/plugins/chain_plugin/test/test_trx_finality_status_processing.cpp @@ -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(); block->producer = producer; diff --git a/unittests/producer_schedule_if_tests.cpp b/unittests/producer_schedule_if_tests.cpp index dd24d501dd..60833bb359 100644 --- a/unittests/producer_schedule_if_tests.cpp +++ b/unittests/producer_schedule_if_tests.cpp @@ -128,7 +128,7 @@ BOOST_FIXTURE_TEST_CASE( proposer_policy_progression_test, validating_tester ) t vector 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} ); @@ -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