Skip to content

Instantly share code, notes, and snippets.

@sambacha
Last active February 9, 2025 09:04
Show Gist options
  • Save sambacha/9bf6661fec51f97deb8e3a6bc8fc498a to your computer and use it in GitHub Desktop.
Save sambacha/9bf6661fec51f97deb8e3a6bc8fc498a to your computer and use it in GitHub Desktop.
@startuml
skinparam sequenceArrowThickness 2
skinparam roundCorner 20
skinparam maxMessageSize 80
skinparam sequenceParticipant underline
skinparam backgroundColor #ffffff
title Block Proposal
autonumber
participant "Consensus" as Consensus #ADD1B2
participant "MEV-Boost" as MEVBoost #90EE90
participant "Execution" as Execution #87CEFA
participant "Relays" as Relays #F08080
note over Consensus: wait for allocated slot
Consensus -> MEVBoost: engine_forkchoiceUpdatedV1
activate MEVBoost #LightGreen
MEVBoost -> Execution: engine_forkchoiceUpdatedV1
activate Execution #LightBlue
MEVBoost -> Relays: engine_forkchoiceUpdatedV1
activate Relays #LightCoral
note over MEVBoost: begin polling
MEVBoost -> Relays: relay_getPayloadHeaderV1
MEVBoost -> Consensus: builder_getPayloadHeaderV1
Consensus -> MEVBoost: builder_getPayloadHeaderV1
MEVBoost -> Execution: engine_getPayloadV1
deactivate Execution
note over MEVBoost: select best payload
MEVBoost --> Consensus: builder_getPayloadHeaderV1 response
deactivate MEVBoost
note over Consensus: sign the block
Consensus -> MEVBoost: builder_proposeBlindedBlockV1
activate MEVBoost #LightGreen
note over MEVBoost: identify payload source
MEVBoost -> Relays: relay_proposeBlindedBlockV1
activate Relays #LightCoral
note over Relays: validate signature
Relays --> MEVBoost: relay_proposeBlindedBlockV1 response
deactivate Relays
MEVBoost --> Consensus: builder_proposeBlindedBlockV1 response
deactivate MEVBoost
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment