use correct dataset geometry in erasure

This commit is contained in:
Dmitriy Ryajov 2024-02-16 08:59:13 -06:00
parent 947b3dadc0
commit 90acd52d1d
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ proc init*(
let
rounded = roundUp(manifest.blocksCount, ecK)
steps = divUp(manifest.blocksCount, ecK)
steps = divUp(rounded, ecK)
blocksCount = rounded + (steps * ecM)
success EncodingParams(

View File

@ -31,7 +31,7 @@ func `==`*(a, b: Block): bool =
proc calcEcBlocksCount*(blocksCount: int, ecK, ecM: int): int =
let
rounded = roundUp(blocksCount, ecK)
steps = divUp(blocksCount, ecK)
steps = divUp(rounded, ecK)
rounded + (steps * ecM)