Skip to content

Commit

Permalink
Prover workshop band-aid (#853)
Browse files Browse the repository at this point in the history
* add prover bandaid

* Improve error message text

Co-authored-by: Eric <[email protected]>
Signed-off-by: Giuliano Mega <[email protected]>

---------

Signed-off-by: Giuliano Mega <[email protected]>
Co-authored-by: Eric <[email protected]>
  • Loading branch information
gmega and emizzle authored Jul 3, 2024
1 parent 67facb4 commit fbf1b51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions codex/node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fbf1b51

Please sign in to comment.