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 9, 2023
1 parent ad49ed5 commit eef0b0c
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 @@ -136,8 +136,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 eef0b0c

Please sign in to comment.