From c8245e77d6f6000e00aad0809cfe403a43143849 Mon Sep 17 00:00:00 2001 From: kayan Date: Thu, 12 Oct 2023 17:43:17 +0800 Subject: [PATCH] fix error with tester 3.1 --- tests/basic_evm_tester.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/basic_evm_tester.hpp b/tests/basic_evm_tester.hpp index 6a131fa9..ccb203b2 100644 --- a/tests/basic_evm_tester.hpp +++ b/tests/basic_evm_tester.hpp @@ -261,8 +261,8 @@ class evm_validating_tester : public testing::base_tester { signed_block_ptr produce_block( fc::microseconds skip_time = fc::milliseconds(config::block_interval_ms) )override { auto sb = _produce_block(skip_time, false); auto bsf = validating_node->create_block_state_future( sb->calculate_id(), sb ); - struct controller::block_report br; - validating_node->push_block( br, bsf.get(), forked_branch_callback{}, trx_meta_cache_lookup{} ); + //struct controller::block_report br; // FIXME, + validating_node->push_block(/* br,*/ bsf.get(), forked_branch_callback{}, trx_meta_cache_lookup{} ); return sb; } @@ -273,16 +273,16 @@ class evm_validating_tester : public testing::base_tester { void validate_push_block(const signed_block_ptr& sb) { auto bsf = validating_node->create_block_state_future( sb->calculate_id(), sb ); - struct controller::block_report br; - validating_node->push_block( br, bsf.get(), forked_branch_callback{}, trx_meta_cache_lookup{} ); + //struct controller::block_report br; // FIXME + validating_node->push_block(/* br, */ bsf.get(), forked_branch_callback{}, trx_meta_cache_lookup{} ); } signed_block_ptr produce_empty_block( fc::microseconds skip_time = fc::milliseconds(config::block_interval_ms) )override { unapplied_transactions.add_aborted( control->abort_block() ); auto sb = _produce_block(skip_time, true); auto bsf = validating_node->create_block_state_future( sb->calculate_id(), sb ); - struct controller::block_report br; - validating_node->push_block( br, bsf.get(), forked_branch_callback{}, trx_meta_cache_lookup{} ); + //struct controller::block_report br; // FIXME + validating_node->push_block(/* br, */bsf.get(), forked_branch_callback{}, trx_meta_cache_lookup{} ); return sb; }