forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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:
reth/crates/scroll/payload/src/builder.rs
Lines 399 to 403 in eb020e1
| 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels