Skip to content
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
def248e
feat: export
ahshum Feb 21, 2026
107f2d1
fix: disable gloas columns at block time
ahshum Feb 21, 2026
e9bc87e
fix: envelope proposal per spec
ahshum Feb 21, 2026
5e2f412
fix: process envelope with sidecars
ahshum Feb 21, 2026
95a3e0e
merge unstable
ahshum Feb 24, 2026
5efc500
merge unstable
ahshum Feb 24, 2026
852e624
merge unstable
ahshum Feb 27, 2026
027402d
fix: expose due to revert
ahshum Feb 27, 2026
d94dd24
merge unstable
ahshum Feb 27, 2026
3a0071b
refactor: move envelope creation to shared path
ahshum Mar 3, 2026
d751417
merge unstable
ahshum Mar 3, 2026
7ff9dd8
fix: stack limit
ahshum Mar 3, 2026
2dd0470
merge unstable
ahshum Mar 4, 2026
b7cf4a0
fix: drop pre-Electra proposal
ahshum Mar 4, 2026
3771b68
merge unstable
ahshum Mar 16, 2026
5ebaebf
fix: log instead of err on broadcast failing
ahshum Mar 16, 2026
3ce23e8
merge unstable
ahshum Apr 9, 2026
9ac70cd
fix: heze fork
ahshum Apr 9, 2026
03ca849
merge unstable
ahshum Apr 9, 2026
2aa4eff
chore: add spec url
ahshum Apr 9, 2026
5286be3
merge unstable
ahshum Apr 15, 2026
0c53515
merge unstable
ahshum Apr 16, 2026
15b0756
fix: return head and heze comments
ahshum Apr 16, 2026
8b655cc
fix: unused vars and heze comments
ahshum Apr 16, 2026
6915bd4
merge unstable
ahshum Apr 16, 2026
8afbd94
fix: heze block
ahshum Apr 16, 2026
04ef033
merge unstable
ahshum Apr 23, 2026
53fc4c6
feat: update envelope proposal
ahshum Apr 24, 2026
ca70736
feat: validate envelope with gossip
ahshum Apr 24, 2026
ee124a7
merge unstable
ahshum Apr 24, 2026
a6f8dae
merge unstable
ahshum Apr 24, 2026
c325245
merge unstable
ahshum Apr 27, 2026
7bb8f31
merge unstable
ahshum Apr 29, 2026
3f2b678
merge unstable
ahshum May 1, 2026
897f918
chore: update spec
ahshum May 1, 2026
0129f3a
fix: use func
ahshum May 1, 2026
645d7df
chore: clean up
ahshum May 1, 2026
7684d29
fix: clean up
ahshum May 1, 2026
efc5cb1
refactor: callers for pre-Gloas and Gloas
ahshum May 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions beacon_chain/validators/beacon_validators.nim
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,11 @@ proc proposeBlockAux(
signature: signatureRes.get()
)

await node.router.routeExecutionPayloadEnvelope(
signedEnvelope, checkValidator = false)
let res = await node.router.routeExecutionPayloadEnvelope(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why is this a separate method? can it not be a part of routeSignedBeaconBlock? i'm just trying to understand

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

signedBlock, signedEnvelope, sidecarsOpt)
if res.isErr():
error "Failed to propose envelope", reason = res.error(), slot = slot
return newBlockRef.get()

notice "Payload Envelope proposed",
blockRoot = shortLog(blockRoot),
Expand Down
1 change: 1 addition & 0 deletions beacon_chain/validators/block_payloads.nim
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func decodePayloadRequests(
except SerializationError:
err("Failed to deserialize execution requests")

# https://github.com/ethereum/consensus-specs/blob/v1.7.0-alpha.7/specs/gloas/builder.md#constructing-the-signedexecutionpayloadenvelope
func makeExecutionPayloadEnvelope*(
eps: gloas.ExecutionPayloadForSigning,
execution_requests: ExecutionRequests,
Expand Down
55 changes: 35 additions & 20 deletions beacon_chain/validators/message_router.nim
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,11 @@ proc routeSignedBeaconBlock*(
await router.publishRouteBlock(blck)

# 3. Publish sidecars
let finalSidecars = await publishSidecars(router, blck, someSidecarsOpt)
when typeof(blck).kind >= ConsensusFork.Gloas:
# Disable column processing at block time.
Comment thread
arnetheduck marked this conversation as resolved.
Resolved
const finalSidecars = noSidecars
else:
let finalSidecars = await publishSidecars(router, blck, someSidecarsOpt)

# 4. Add block to DAG
return await router.addRoutedBlock(blck, finalSidecars)
Expand Down Expand Up @@ -702,29 +706,40 @@ proc routePayloadAttestationMessage*(

proc routeExecutionPayloadEnvelope*(
router: ref MessageRouter,
signedBlock: gloas.SignedBeaconBlock | heze.SignedBeaconBlock,
signedEnvelope: gloas.SignedExecutionPayloadEnvelope,
checkValidator: bool
) {.async: (raises: [CancelledError]).} =
block:
let res = router[].processor[].processExecutionPayloadEnvelope(
MsgSource.api, signedEnvelope)
sidecarsOpt: Opt[seq[gloas.DataColumnSidecar]],
): Future[Result[void, cstring]] {.async: (raises: [CancelledError]).} =
# Validate with gossip
let vRes = validateExecutionPayload(
router[].dag, router[].quarantine,
router.processor.envelopeQuarantine, signedEnvelope)
if not isGoodForSending(vRes):
warn "Envelope failed validation",
envelope = shortLog(signedEnvelope.message),
payload = shortLog(signedEnvelope.message.payload),
signature = shortLog(signedEnvelope.signature),
error = vRes.error()
return err(vRes.error()[1])

if not res.isGoodForSending:
warn "Execution payload envelope failed validation",
envelope = shortLog(signedEnvelope.message),
error = res.error()
return
# Publish envelope
let res = await router[].network.broadcastExecutionPayloadEnvelope(signedEnvelope)
if res.isErr():
notice "Envelope not sent",
envelope = shortLog(signedEnvelope.message), error = res.error()
else:
notice "Envelope sent",
envelope = shortLog(signedEnvelope.message)

let res =
await router[].network.broadcastExecutionPayloadEnvelope(signedEnvelope)
# Publish sidecars
let finalSidecars = await publishSidecars(router, signedBlock, sidecarsOpt)

if res.isOk():
info "Execution payload envelope sent",
envelope = shortLog(signedEnvelope.message)
else:
notice "Execution payload envelope not sent",
envelope = shortLog(signedEnvelope.message),
error = res.error()
# Add envelope and sidecars to DAG
(await router[].blockProcessor.addPayload(
signedBlock, signedEnvelope, finalSidecars)).isOkOr:
return err("Proposed envelope failed to add to the chain")

ok()

proc routeProposerPreferences*(
router: ref MessageRouter,
Expand Down
Loading