Skip to content

Commit

Permalink
Use SubnetID instead of uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
ppopth committed May 10, 2023
1 parent f4b4f58 commit a8c3891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/deneb/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ The `subnet_id` for the `signed_sidecar` is calculated with:
- Let `subnet_id = compute_subnet_for_blob_sidecar(blob_index)`.

```python
def compute_subnet_for_blob_sidecar(blob_index: BlobIndex) -> uint64:
return uint64(blob_index % BLOB_SIDECAR_SUBNET_COUNT)
def compute_subnet_for_blob_sidecar(blob_index: BlobIndex) -> SubnetID:
return SubnetID(blob_index % BLOB_SIDECAR_SUBNET_COUNT)
```

After publishing the peers on the network may request the sidecar through sync-requests, or a local user may be interested.
Expand Down

0 comments on commit a8c3891

Please sign in to comment.