Skip to content

Commit

Permalink
Clarify context bytes in the RPC methods in 4844
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Jan 26, 2023
1 parent 6e397b1 commit dbabe9e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion specs/eip4844/p2p-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:
After `EIP4844_FORK_EPOCH`, `BeaconBlocksByRootV2` is replaced by `BeaconBlockAndBlobsSidecarByRootV1`.
Clients MUST support requesting blocks by root for pre-fork-epoch blocks.

Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:
The `<context-bytes>` field is calculated as `context = compute_fork_digest(fork_version, genesis_validators_root)`:

[1]: # (eth2spec: skip)

Expand All @@ -143,6 +143,14 @@ Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:

**Protocol ID:** `/eth2/beacon_chain/req/beacon_block_and_blobs_sidecar_by_root/1/`

The `<context-bytes>` field is calculated as `context = compute_fork_digest(fork_version, genesis_validators_root)`:

[1]: # (eth2spec: skip)

| `fork_version` | Chunk SSZ type |
|--------------------------|-------------------------------|
| `EIP4844_FORK_VERSION` | `eip4844.SignedBeaconBlockAndBlobsSidecar` |

Request Content:

```
Expand Down Expand Up @@ -179,6 +187,14 @@ Clients MAY limit the number of blocks and sidecars in the response.

**Protocol ID:** `/eth2/beacon_chain/req/blobs_sidecars_by_range/1/`

The `<context-bytes>` field is calculated as `context = compute_fork_digest(fork_version, genesis_validators_root)`:

[1]: # (eth2spec: skip)

| `fork_version` | Chunk SSZ type |
|--------------------------|-------------------------------|
| `EIP4844_FORK_VERSION` | `eip4844.BlobsSidecar` |

Request Content:
```
(
Expand Down

0 comments on commit dbabe9e

Please sign in to comment.