Skip to content

Commit

Permalink
Debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica committed Feb 6, 2025
1 parent df74f34 commit 74aa8bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,9 @@ class ProverManager {
/*x=*/weso->checkpoints[last_appended[i] / (1 << 16)],
/*y=*/weso->checkpoints[(last_appended[i] + sg_length) / (1 << 16)]
);
if (sg.y.a == integer(0) && sg.y.b == integer(0) && sg.y.c == integer(0)) {
throw std::runtime_error("Null form");
}
pending_segments[i].emplace_back(sg);
if (!warned && pending_segments[i].size() >= kWindowSize - 2) {
warned = true;
Expand Down

0 comments on commit 74aa8bb

Please sign in to comment.