From f3f7974a108756050b9d841f7aa0aed14626f2bf Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 29 Aug 2023 14:05:48 +1000 Subject: [PATCH] change slotsize to reflect current implemenation --- codex/node.nim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/codex/node.nim b/codex/node.nim index d7f799c2..f78e2c91 100644 --- a/codex/node.nim +++ b/codex/node.nim @@ -284,7 +284,13 @@ proc requestStorage*( let request = StorageRequest( ask: StorageAsk( slots: nodes + tolerance, - slotSize: (encoded.blockSize.int * encoded.steps).u256, + # TODO: Specify slot-specific size (as below) once dispersal is + # implemented. The current implementation downloads the entire dataset, so + # it is currently set to be the size of the entire dataset. This is + # because the slotSize is used to determine the amount of bytes to reserve + # in a Reservations + # TODO: slotSize: (encoded.blockSize.int * encoded.steps).u256, + slotSize: (encoded.blockSize.int * encoded.blocks.len).u256, duration: duration, proofProbability: proofProbability, reward: reward,