Skip to content

implement miner_setGasLimit RPC #19236

@haardikk21

Description

@haardikk21

Describe the feature

fn set_gas_limit(&self, _gas_price: U128) -> RpcResult<bool> {
Ok(false)
}

These methods are currently noop as code to enforce these settings does not exist. We would like to have the RPC method for set_gas_limit available, particularly for the Optimism API extension, so we can temporarily limit the block sizes being built if needed without needing to update L1 contract configurations

Ideally paired with a guage metric that can emit the current gas limit value being used by the node

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-op-rethRelated to Optimism and op-rethA-rpcRelated to the RPC implementationC-enhancementNew feature or request

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions