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