[ProgPow] Make starting multiple threads work#834
Merged
codeofalltrades merged 1 commit intoVeil-Project:1.1.0from Aug 22, 2020
Merged
[ProgPow] Make starting multiple threads work#834codeofalltrades merged 1 commit intoVeil-Project:1.1.0from
codeofalltrades merged 1 commit intoVeil-Project:1.1.0from
Conversation
codeofalltrades
approved these changes
Aug 22, 2020
Collaborator
codeofalltrades
left a comment
There was a problem hiding this comment.
ACK 554d80b
starting and stopping the wallet is much improved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Starting multiple ProgPoW threads crashes deep in the depths of the algorithm:
Root Cause
Unknown
Egregious hack to make it work
The problem occurs when you start multiple threads on the outset.
generatecontinuous true 2for example. The problem does not occur if you start one thread on the outset. Furthermore, if you start one thread, stop it (generatecontinuous false), then you start multiple threads, it works.So after a ton of digging into the root cause and not being able to reveal any leads on the true issue; this hack was put in so that it will just work. The 'hack', does what was found to work; If ProgPoW, start one dummy thread for a second, then tear it down and start up the working threads.
This (obviously) is not a final solution, or a pretty solution, or even anything that's very safe. But for the time being it's all I got to clear the roadblock.
Any other ideas are more than welcome.