From 12c4c97655efe300a240ff14eddd2503f35c64b5 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Mon, 12 Jun 2023 16:40:46 +0200 Subject: [PATCH] DASL check samplesize <= blocksize Signed-off-by: Csaba Kiraly --- das/das.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/das/das.nim b/das/das.nim index 71cfed6..f7790a8 100644 --- a/das/das.nim +++ b/das/das.nim @@ -101,6 +101,7 @@ when isMainModule: upload_timeout = 5.seconds sampling_timeout = 5.seconds assert(log2(blocksize.float).ceil.int <= segmentsize * 8 ) + assert(samplesize <= blocksize) var segmentIDs = newSeq[NodeId](blocksize)