mirror of
https://github.com/logos-storage/zk-benchmarks.git
synced 2026-01-02 22:03:10 +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) {
|
||||
|
||||
case 1:
|
||||
printf("usage:\n");
|
||||
printf("$ poseidon2 <merkle_depth>:\n");
|
||||
printf("$ poseidon2 <merkle_depth> <nthreads>:\n");
|
||||
exit(-1);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
mtDepth = atoi(argv[1]);
|
||||
break;
|
||||
@ -411,6 +404,13 @@ int main( int argc, char *argv[] ) {
|
||||
mtDepth = atoi(argv[1]);
|
||||
nThreads = atoi(argv[2]);
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user