From fbf1b51f5773cd8b5129c1f80cdcad54baf0bc80 Mon Sep 17 00:00:00 2001 From: Giuliano Mega Date: Wed, 3 Jul 2024 08:27:56 -0300 Subject: [PATCH] Prover workshop band-aid (#853) * add prover bandaid * Improve error message text Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com> Signed-off-by: Giuliano Mega --------- Signed-off-by: Giuliano Mega Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com> --- codex/node.nim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/codex/node.nim b/codex/node.nim index f2bcb289..19065c99 100644 --- a/codex/node.nim +++ b/codex/node.nim @@ -423,6 +423,15 @@ proc setupRequest( trace "Unable to fetch manifest for cid" return failure error + # ---------------------------------------------------------------------------- + # FIXME this is a BAND-AID to address + # https://github.com/codex-storage/nim-codex/issues/852 temporarily for the + # workshop. Remove this once we get that fixed. + if manifest.blocksCount.uint == ecK: + return failure("Cannot setup slots for a dataset with ecK == numBlocks. Please use a larger file or a different combination of `nodes` and `tolerance`.") + # ---------------------------------------------------------------------------- + + # Erasure code the dataset according to provided parameters let erasure = Erasure.new(