Skip to content

Implement gradual gas limit increase #315

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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