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 <giuliano.mega@gmail.com> --------- Signed-off-by: Giuliano Mega <giuliano.mega@gmail.com> Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
This commit is contained in:
parent
67facb4b2a
commit
fbf1b51f57
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue