Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing logic to handle stopped signal in one-weso proofs. For one-weso proofs, vdf_client launches two threads to do its work. One repeatedly squares until a given number of iterations, the second waits until the first is done squaring and then computes a proof. The squaring-thread properly handles the "stopped" signal and aborts early, if signaled. That way, it never reaches the targeted iterations. The 1weso-thread waits until the target iterations are reached, but does not handle the "stopped" signal. Thus, for stopped iters, it waits infinitely. This situation regularly occurs, vdf_client is running for a bluebox timelord. Whenever the timelord (Python) process restarts, network communication errors out, killing the squaring thread. But instead of the while vdf_client exiting (which would lead to the timelord launcher cleanly restarting a fresh one), the 1weso thread keeps the vdf_client alive infinitely.
- Loading branch information