Skip to content

Commit

Permalink
refactor(blockifier_reexecution): change name of fn get tx executor
Browse files Browse the repository at this point in the history
  • Loading branch information
AvivYossef-starkware committed Nov 10, 2024
1 parent 4d9ae84 commit 42f71bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ impl ReexecutionStateReader for TestStateReader {

/// Trait of the functions \ queries required for reexecution.
pub trait ConsecutiveStateReaders<S: StateReader> {
fn get_transaction_executor(
fn pre_process_and_create_executor(
self,
transaction_executor_config: Option<TransactionExecutorConfig>,
) -> ReexecutionResult<TransactionExecutor<S>>;
Expand Down Expand Up @@ -496,7 +496,7 @@ impl ConsecutiveTestStateReaders {
}

impl ConsecutiveStateReaders<TestStateReader> for ConsecutiveTestStateReaders {
fn get_transaction_executor(
fn pre_process_and_create_executor(
self,
transaction_executor_config: Option<TransactionExecutorConfig>,
) -> ReexecutionResult<TransactionExecutor<TestStateReader>> {
Expand Down Expand Up @@ -642,7 +642,7 @@ impl OfflineConsecutiveStateReaders {
}

impl ConsecutiveStateReaders<OfflineStateReader> for OfflineConsecutiveStateReaders {
fn get_transaction_executor(
fn pre_process_and_create_executor(
self,
transaction_executor_config: Option<TransactionExecutorConfig>,
) -> ReexecutionResult<TransactionExecutor<OfflineStateReader>> {
Expand Down
2 changes: 1 addition & 1 deletion crates/blockifier_reexecution/src/state_reader/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 42f71bd

Please sign in to comment.