Skip to content

SSE subscription for newPayload event to trigger block building #244

Closed
OffchainLabs/prysm
#12102
@metachris

Description

@metachris

Block builders in the MEV-Boost ecosystem need a few bits of information to start block building as soon as possible, which is (a) at the newPayload event, or (b) after a timeout if the BN missed a slot, so block production is still triggered.

Currently a custom BN fork is needed to trigger block production in time.

We'd like to propose adding another SSE event subscription to the beacon-APIs, which can be used to trigger block production.

The necessary payload fields are

  • slot
  • blockHash
  • timestamp
  • prevRandao
  • withdrawals

Current implementation here

I can open a PR with the changes to https://github.com/ethereum/beacon-APIs/blob/master/apis/eventstream/index.yaml but wanted to open the issue to discuss this first.


For reference, this is currently implemented in a custom BN fork with a notifyBuildBlock method
which send BuilderPayloadAttributes, and is triggered on onBlock and other events and after a timeout has been reached (see process_block.go)

Edit 1: should the event be sent again if the likely parent changes due to new attestations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions