Skip to content

Commit 272d3ee

Browse files
nflaigrolfyone
andauthored
Add Electra blob sidecars type to support max blobs from EIP-7691 (#488)
* Add Electra blob sidecars type to support max blobs from EIP-7691 * Eth-Consensus-Version header is required now * More conistent formatting * Remove some formatting changes to keep diff minimal --------- Co-authored-by: Paul Harris <[email protected]>
1 parent fd60bee commit 272d3ee

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

apis/beacon/blob_sidecars/blob_sidecars.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ get:
2929
headers:
3030
Eth-Consensus-Version:
3131
$ref: '../../../beacon-node-oapi.yaml#/components/headers/Eth-Consensus-Version'
32-
required: false
3332
content:
3433
application/json:
3534
schema:
3635
title: GetBlobSidecarsResponse
3736
type: object
38-
required: [data]
37+
required: [version, execution_optimistic, finalized, data]
3938
properties:
4039
version:
4140
type: string
@@ -46,7 +45,9 @@ get:
4645
finalized:
4746
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized"
4847
data:
49-
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlobSidecars"
48+
anyOf:
49+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlobSidecars"
50+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.BlobSidecars"
5051
application/octet-stream:
5152
schema:
5253
description: "SSZ serialized `BlobSidecars` bytes. Use Accept header to choose this response type"

beacon-node-oapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ components:
423423
$ref: './types/electra/light_client.yaml#/Electra/LightClientFinalityUpdate'
424424
Electra.LightClientOptimisticUpdate:
425425
$ref: './types/electra/light_client.yaml#/Electra/LightClientOptimisticUpdate'
426+
Electra.BlobSidecars:
427+
$ref: './types/electra/blob_sidecar.yaml#/Electra/BlobSidecars'
426428
Node:
427429
$ref: './types/fork_choice.yaml#/Node'
428430
ExtraData:

types/electra/blob_sidecar.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Electra:
2+
BlobSidecars:
3+
type: array
4+
items:
5+
$ref: "../deneb/blob_sidecar.yaml#/Deneb/BlobSidecar"
6+
minItems: 0
7+
maxItems: 9

0 commit comments

Comments
 (0)