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

Method block_builder

crates/execution/payload/src/builder.rs:620–636  ·  view source on GitHub ↗

Prepares a [`BlockBuilder`] for the next block.

(
        &'a self,
        db: &'a mut State<DB>,
    )

Source from the content-addressed store, hash-verified

618
619 /// Prepares a [`BlockBuilder`] for the next block.
620 pub fn block_builder<'a, DB: Database>(
621 &'a self,
622 db: &'a mut State<DB>,
623 ) -> Result<impl BlockBuilder<Primitives = Evm::Primitives> + 'a, PayloadBuilderError> {
624 self.evm_config
625 .builder_for_next_block(
626 db,
627 self.parent(),
628 Evm::NextBlockEnvCtx::build_next_env(
629 self.attributes(),
630 self.parent(),
631 self.chain_spec.as_ref(),
632 )
633 .map_err(PayloadBuilderError::other)?,
634 )
635 .map_err(PayloadBuilderError::other)
636 }
637
638 /// Executes all sequencer transactions that are included in the payload attributes.
639 ///

Callers 2

buildMethod · 0.80
witnessMethod · 0.80

Calls 3

parentMethod · 0.45
attributesMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected