(
state: &mut State<DB>,
ctx: &BasePayloadBuilderCtx,
)
| 965 | } |
| 966 | |
| 967 | pub(crate) fn execute_pre_steps<DB>( |
| 968 | state: &mut State<DB>, |
| 969 | ctx: &BasePayloadBuilderCtx, |
| 970 | ) -> Result<ExecutionInfo, PayloadBuilderError> |
| 971 | where |
| 972 | DB: Database<Error = ProviderError> + std::fmt::Debug + revm::Database, |
| 973 | { |
| 974 | // 1. apply pre-execution changes |
| 975 | ctx.evm_config |
| 976 | .builder_for_next_block(state, ctx.parent(), ctx.block_env_attributes.clone()) |
| 977 | .map_err(PayloadBuilderError::other)? |
| 978 | .apply_pre_execution_changes()?; |
| 979 | |
| 980 | // 2. execute sequencer transactions |
| 981 | let info = ctx.execute_sequencer_transactions(state)?; |
| 982 | |
| 983 | Ok(info) |
| 984 | } |
| 985 | |
| 986 | pub(crate) fn build_block<DB, P>( |
| 987 | state: &mut State<DB>, |
no test coverage detected