MCPcopy Create free account
hub / github.com/base/base / execute_pre_steps

Function execute_pre_steps

crates/builder/core/src/flashblocks/payload.rs:967–984  ·  view source on GitHub ↗
(
    state: &mut State<DB>,
    ctx: &BasePayloadBuilderCtx,
)

Source from the content-addressed store, hash-verified

965}
966
967pub(crate) fn execute_pre_steps<DB>(
968 state: &mut State<DB>,
969 ctx: &BasePayloadBuilderCtx,
970) -> Result<ExecutionInfo, PayloadBuilderError>
971where
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
986pub(crate) fn build_block<DB, P>(
987 state: &mut State<DB>,

Callers 1

build_payloadMethod · 0.85

Calls 4

parentMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected