From 5a0ccc4d625b6ea5e1eadb06fee0f6f698c1a61d Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 29 Aug 2023 14:56:03 +1000 Subject: [PATCH] Fix slotSize to reduce by one block --- codex/node.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex/node.nim b/codex/node.nim index f78e2c91..c5eb20b0 100644 --- a/codex/node.nim +++ b/codex/node.nim @@ -290,7 +290,7 @@ proc requestStorage*( # 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, + slotSize: (encoded.blockSize.int * (encoded.blocks.len - 1)).u256, duration: duration, proofProbability: proofProbability, reward: reward,