Skip to content

Add target_gas_limit to PayloadAttributes - #693

Merged
Tumas merged 1 commit into
glamsterdam-devnet-4from
feature/target-gas-limit-in-payload-attributes
May 18, 2026
Merged

Add target_gas_limit to PayloadAttributes#693
Tumas merged 1 commit into
glamsterdam-devnet-4from
feature/target-gas-limit-in-payload-attributes

Conversation

@hangleang

Copy link
Copy Markdown
Member

})
}

async fn gas_limit(&self) -> Result<Gas> {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should introduce new version of POST /eth/v1/validator/prepare_beacon_proposer to allow validator client submit their prefered gas limit to beacon node as well

cc @povi @Tumas

@povi povi May 15, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is this endpoint, which we already implement (also whole API): https://ethereum.github.io/keymanager-APIs/?urls.primaryName=dev#/Gas%20Limit/setGasLimit

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I see. but how can we load it in block building like fee_recipient?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already pass preferred gas limit to external builders: https://github.com/grandinetech/grandine/blob/develop/validator/src/validator.rs#L2295

You can do something like that in block producer.

@hangleang hangleang May 15, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that's what I did. So it's fine

@Tumas
Tumas changed the base branch from glamsterdam-devnet-3 to glamsterdam-devnet-4 May 18, 2026 12:49
@Tumas
Tumas merged commit 4e6384c into glamsterdam-devnet-4 May 18, 2026
3 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants