Prepares a [`BlockBuilder`] for the next block.
(
&'a self,
db: &'a mut State<DB>,
)
| 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 | /// |
no test coverage detected