Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Sep 24, 2024
1 parent 307c6dd commit 249cafe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prover_slow.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ std::vector<uint8_t> ProveSlow(integer& D, form& x, uint64_t num_iterations, std
reducer.reduce(y);

// Check for cancellation every 65535 interations
if ((num_iterations&0xffff)==0) {
if ((i&0xffff)==0) {
struct stat buffer;
char sz[200];
sprintf(sz,"num_iterations %llu shutdown_file_path.c_str() %s",num_iterations,shutdown_file_path.c_str());
sprintf(sz,"num_iterations %llu shutdown_file_path.c_str() %s",i,shutdown_file_path.c_str());
logit(sz);
if ((shutdown_file_path!="") && (stat (shutdown_file_path.c_str(), &buffer) != 0))
logit("aborting");
Expand Down

0 comments on commit 249cafe

Please sign in to comment.