Skip to content

Commit

Permalink
explicit language about the ephemeral_headers_key validity
Browse files Browse the repository at this point in the history
  • Loading branch information
pipermerriam committed Jan 8, 2025
1 parent 1402aa9 commit 7bb9e63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions history/history-network.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ List of currently supported payloads, by latest to oldest.
- [Type 2 History Radius Payload](../ping-payload-extensions/extensions/type-2.md)


* The `data_radius` value defines the *distance* from the node's node-id for which other clients may assume the node would be interested in content.
* The `ephemeral_header_count` value defines the number of *recent* headers that this node stores. The maximum effective value for this is 8192.

### Routing Table

The history network uses the standard routing table structure from the Portal Wire Protocol.
Expand Down Expand Up @@ -262,6 +259,11 @@ content = SSZ.serialize(ephemeral_header_payload)
content_key = selector + SSZ.serialize(ephemeral_headers_key)
```

The `ephemeral_headers_key` encodes a request for headers anchored to the block
hash indicated by `ephemeral_headers_key.block_hash`. The
`ephemeral_headers_key.ancestor_count` **MUST** be in the inclusive range
0-255.

The `ephemeral_header_payload` is an SSZ list of RLP encoded block header
objects. The this object is subject to the following validity conditions.

Expand Down

0 comments on commit 7bb9e63

Please sign in to comment.