diff --git a/circuits/storer.circom b/circuits/storer.circom index a6aabd4..6eab89f 100644 --- a/circuits/storer.circom +++ b/circuits/storer.circom @@ -38,9 +38,9 @@ function roundUpDiv(x, n) { if (last > 0) { return div + 1; - } else { - return div; } + + return div; } template parallel HashCheck(BLOCK_SIZE, CHUNK_SIZE) { diff --git a/test/circuits/storer_test.circom b/test/circuits/storer_test.circom index 06908ce..2d7a8e7 100644 --- a/test/circuits/storer_test.circom +++ b/test/circuits/storer_test.circom @@ -2,5 +2,4 @@ pragma circom 2.1.0; include "../../circuits/storer.circom"; -// component main { public [root, salt] } = StorageProver(32, 4, 2, 4); -component main { public [root, salt] } = StorageProver(32, 4, 2, 2); +component main { public [root, salt] } = StorageProver(32, 4, 2, 5);