Skip to content

Implement gradual gas limit increase #315

@greged93

Description

@greged93

Describe the feature

The gas limit should not increase by more than parent.gaslimit/1024. Check the gas limit in the parent header and limit the increase, until target is reached. This should be implemented in the ScrollPayloadBuilderCtx, in the block_builder method:

pub fn block_builder<'a, DB: Database>(
&'a self,
db: &'a mut State<DB>,
builder_config: &ScrollBuilderConfig,
) -> Result<impl BlockBuilder<Primitives = Evm::Primitives> + 'a, PayloadBuilderError> {
.
Also need to update the initialization of the payload breaker in order to use the correct gas limit.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions