From e88bb14aa8e36ed0cde273e369b7d95db9dfc165 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 3 Jan 2025 12:12:28 +1000 Subject: [PATCH] Explain segment padding better --- shared/subspace-data-retrieval/src/object_fetcher.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/subspace-data-retrieval/src/object_fetcher.rs b/shared/subspace-data-retrieval/src/object_fetcher.rs index 84e919be8c..85800987ef 100644 --- a/shared/subspace-data-retrieval/src/object_fetcher.rs +++ b/shared/subspace-data-retrieval/src/object_fetcher.rs @@ -30,8 +30,9 @@ use tracing::{debug, trace, warn}; /// The maximum amount of segment padding. /// -/// This is the difference between the compact encoding of lengths 1 to 63, and the compact -/// encoding of lengths 2^14 to 2^30 - 1. +/// This is the difference between the lengths of the compact encodings of the minimum and maximum +/// block sizes, in any domain. As of January 2025, the minimum block size is (potentially) 63 or +/// less, and the maximum block size is in the range 2^14 to 2^30 - 1. /// pub const MAX_SEGMENT_PADDING: usize = 3;