Skip to content

Commit

Permalink
hw: Allow up to 8 proof segment threads
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislav committed Oct 13, 2023
1 parent cfcb2c1 commit 187830f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hw/hw_vdf_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ int parse_opts(int argc, char **argv, struct vdf_client_opts *opts)
{"vdfs-mask", required_argument, NULL, 1},
{"vdf-threads", required_argument, NULL, 1},
{"proof-threads", required_argument, NULL, 1},
{"segment-threads", required_argument, NULL, 1},
{"list", no_argument, NULL, 1},
{"auto-freq-period", required_argument, NULL, 1},
{0}
Expand Down Expand Up @@ -496,6 +497,10 @@ int parse_opts(int argc, char **argv, struct vdf_client_opts *opts)
LOG_SIMPLE("Number of proof threads must be less than VDF threads");
return -1;
}
if (opts->vpo.segment_threads > 8) {
LOG_SIMPLE("Number of proof threads per segment must be between 1 and 8");
return -1;
}
if (opts->auto_freq && opts->auto_freq_period < 10) {
LOG_SIMPLE("Invalid auto freq period");
return -1;
Expand Down

0 comments on commit 187830f

Please sign in to comment.