From 42f71bd4a838f5c81fd06918eac3c31abc4b54a1 Mon Sep 17 00:00:00 2001 From: AvivYossef-starkware Date: Sun, 10 Nov 2024 16:52:40 +0200 Subject: [PATCH] refactor(blockifier_reexecution): change name of fn get tx executor --- .../src/state_reader/test_state_reader.rs | 6 +++--- crates/blockifier_reexecution/src/state_reader/utils.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/blockifier_reexecution/src/state_reader/test_state_reader.rs b/crates/blockifier_reexecution/src/state_reader/test_state_reader.rs index 6d8cccbae7..923cf16cbb 100644 --- a/crates/blockifier_reexecution/src/state_reader/test_state_reader.rs +++ b/crates/blockifier_reexecution/src/state_reader/test_state_reader.rs @@ -442,7 +442,7 @@ impl ReexecutionStateReader for TestStateReader { /// Trait of the functions \ queries required for reexecution. pub trait ConsecutiveStateReaders { - fn get_transaction_executor( + fn pre_process_and_create_executor( self, transaction_executor_config: Option, ) -> ReexecutionResult>; @@ -496,7 +496,7 @@ impl ConsecutiveTestStateReaders { } impl ConsecutiveStateReaders for ConsecutiveTestStateReaders { - fn get_transaction_executor( + fn pre_process_and_create_executor( self, transaction_executor_config: Option, ) -> ReexecutionResult> { @@ -642,7 +642,7 @@ impl OfflineConsecutiveStateReaders { } impl ConsecutiveStateReaders for OfflineConsecutiveStateReaders { - fn get_transaction_executor( + fn pre_process_and_create_executor( self, transaction_executor_config: Option, ) -> ReexecutionResult> { diff --git a/crates/blockifier_reexecution/src/state_reader/utils.rs b/crates/blockifier_reexecution/src/state_reader/utils.rs index ec62ae974a..b5a8aab831 100644 --- a/crates/blockifier_reexecution/src/state_reader/utils.rs +++ b/crates/blockifier_reexecution/src/state_reader/utils.rs @@ -199,7 +199,7 @@ pub fn reexecute_and_verify_correctness< let all_txs_in_next_block = consecutive_state_readers.get_next_block_txs().unwrap(); let mut transaction_executor = - consecutive_state_readers.get_transaction_executor(None).unwrap(); + consecutive_state_readers.pre_process_and_create_executor(None).unwrap(); transaction_executor.execute_txs(&all_txs_in_next_block); // Finalize block and read actual statediff.