Skip to content

Conversation

@jclapis
Copy link
Collaborator

@jclapis jclapis commented Aug 25, 2025

This addresses #362 by adding support for the X-Timeout-Ms header to incoming /getHeader requests.

Since the PBS service already calculates the remaining time in a slot and has a configuration setting for a timeout variable anyway, this just puts whatever timeout is left into that header and sends it to the relay. However, if the proposer provides a valid header value within its request, this will use whichever of those two is shortest. It wouldn't make sense for the proposer to request a longer timeout than would actually be possible before missing the slot, hence why the minimum is used.

@jclapis jclapis requested a review from ltitanb August 25, 2025 05:11
@jclapis jclapis self-assigned this Aug 25, 2025
@jclapis jclapis added the pbs Pbs module / Builder API label Aug 25, 2025
@ltitanb ltitanb merged commit ec6a469 into main Aug 25, 2025
2 checks passed
@ltitanb ltitanb deleted the add-timeout-header branch August 25, 2025 18:52
@ltitanb ltitanb mentioned this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pbs Pbs module / Builder API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants