From 08a13261c209ca2ebb7d099b4cc6240a7b6ad8b7 Mon Sep 17 00:00:00 2001 From: Suphanat Chunhapanya Date: Tue, 9 May 2023 21:03:59 +0700 Subject: [PATCH] Use SubnetID instead of uint64 --- specs/deneb/validator.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/deneb/validator.md b/specs/deneb/validator.md index 4bd9ab4a5..4303c90b5 100644 --- a/specs/deneb/validator.md +++ b/specs/deneb/validator.md @@ -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.