diff --git a/unittests/api_tests.cpp b/unittests/api_tests.cpp index 889225715f..a25e96f0ad 100644 --- a/unittests/api_tests.cpp +++ b/unittests/api_tests.cpp @@ -3921,7 +3921,7 @@ void test_finality_transition(const vector& accounts, const base_t validating_tester t; uint32_t lib = 0; - t.control->irreversible_block.connect([&](const block_signal_params& t) { + t.control->irreversible_block().connect([&](const block_signal_params& t) { const auto& [ block, id ] = t; lib = block->block_num(); }); diff --git a/unittests/producer_schedule_if_tests.cpp b/unittests/producer_schedule_if_tests.cpp index 9d84ded4af..efc3a7856f 100644 --- a/unittests/producer_schedule_if_tests.cpp +++ b/unittests/producer_schedule_if_tests.cpp @@ -52,7 +52,7 @@ BOOST_FIXTURE_TEST_CASE( verify_producer_schedule_after_instant_finality_activat }; uint32_t lib = 0; - control->irreversible_block.connect([&](const block_signal_params& t) { + control->irreversible_block().connect([&](const block_signal_params& t) { const auto& [ block, id ] = t; lib = block->block_num(); });