mirror of
https://github.com/logos-storage/zk-benchmarks.git
synced 2026-01-04 06:43:09 +00:00
minor (irrelevant, cli handling) bugfix in poseidon2
This commit is contained in:
parent
ae3cbde659
commit
fadfcf6e5f
@ -396,13 +396,6 @@ int main( int argc, char *argv[] ) {
|
|||||||
|
|
||||||
switch(argc) {
|
switch(argc) {
|
||||||
|
|
||||||
case 1:
|
|
||||||
printf("usage:\n");
|
|
||||||
printf("$ poseidon2 <merkle_depth>:\n");
|
|
||||||
printf("$ poseidon2 <merkle_depth> <nthreads>:\n");
|
|
||||||
exit(-1);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
mtDepth = atoi(argv[1]);
|
mtDepth = atoi(argv[1]);
|
||||||
break;
|
break;
|
||||||
@ -411,6 +404,13 @@ int main( int argc, char *argv[] ) {
|
|||||||
mtDepth = atoi(argv[1]);
|
mtDepth = atoi(argv[1]);
|
||||||
nThreads = atoi(argv[2]);
|
nThreads = atoi(argv[2]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
printf("usage:\n");
|
||||||
|
printf("$ poseidon2 <merkle_depth>:\n");
|
||||||
|
printf("$ poseidon2 <merkle_depth> <nthreads>:\n");
|
||||||
|
exit(-1);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("calculating Poseidon2 Merkle root with depth=%d on %d threads...\n",mtDepth,nThreads);
|
printf("calculating Poseidon2 Merkle root with depth=%d on %d threads...\n",mtDepth,nThreads);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user