Currently, the execute_block function returns the BlockExecutionResult with the account updates, which are calculated by making a call to get_state_transition function. This is ok when we want to execute just one block, but if we want to execute blocks in batches we don't really need to get the account updates after each block execution, we could just obtain it at the end instead.
We want to separate the block execution from the accounts update calculation.
Currently, the
execute_blockfunction returns theBlockExecutionResultwith the account updates, which are calculated by making a call toget_state_transitionfunction. This is ok when we want to execute just one block, but if we want to execute blocks in batches we don't really need to get the account updates after each block execution, we could just obtain it at the end instead.We want to separate the block execution from the accounts update calculation.