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 d1d43cc commit 4512a6c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/prover_slow.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,6 @@ form GenerateWesolowski(form &y, form &x_init,
return x;
}

void logit(char *sz)
{
FILE *f;
f = fopen("wjb.log", "a+");
if (f == NULL)
return;
fprintf(f, sz);
fprintf(f, "\n");
fclose(f);
}

std::vector<uint8_t> ProveSlow(integer& D, form& x, uint64_t num_iterations, std::string shutdown_file_path) {
integer L = root(-D, 4);
PulmarkReducer reducer;
Expand Down Expand Up @@ -118,10 +107,9 @@ std::vector<uint8_t> ProveSlow(integer& D, form& x, uint64_t num_iterations, std
// Only if we have a shutdown path
if (shutdown_file_path!="") {
struct stat buffer;
logit("checking stat");

if (stat (shutdown_file_path.c_str(), &buffer) != 0) {
logit("aborting");
// shutdown file doesn't exist, abort out
return {};
}
}
Expand Down

0 comments on commit 4512a6c

Please sign in to comment.