Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update canonical-transaction-index-network.md #231

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions canonical-transaction-index-network.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The canonical transaction index network uses the SHA256 Content ID derivation fu

### Wire Protocol

The [Portal wire protocol](./portal-wire-protocol.md) is used as wire protocol for the history network.
The [Portal wire protocol](./portal-wire-protocol.md) is used as wire protocol for the canonical transaction index network.


#### Protocol Identifier
Expand Down Expand Up @@ -66,13 +66,13 @@ custom_payload = SSZ.serialize(custom_data)

### Routing Table

The history network uses the standard routing table structure from the Portal Wire Protocol.
The canonical transaction index network uses the standard routing table structure from the Portal Wire Protocol.

### Node State

#### Data Radius

The history network includes one additional piece of node state that should be tracked. Nodes must track the `data_radius` from the Ping and Pong messages for other nodes in the network. This value is a 256 bit integer and represents the data that a node is "interested" in. We define the following function to determine whether node in the network should be interested in a piece of content.
The canonical transaction index network includes one additional piece of node state that should be tracked. Nodes must track the `data_radius` from the Ping and Pong messages for other nodes in the network. This value is a 256 bit integer and represents the data that a node is "interested" in. We define the following function to determine whether node in the network should be interested in a piece of content.

```
interested(node, content) = distance(node.id, content.id) <= node.radius
Expand Down