-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move block generation to the witness plugin #2861
Move block generation to the witness plugin #2861
Conversation
…d the necessary database interfaces #2717
You re-created |
This reverts commit dbf209c.
Let's add a method in |
libraries/plugins/chain/include/steem/plugins/chain/chain_plugin.hpp
Outdated
Show resolved
Hide resolved
libraries/plugins/witness/include/steem/plugins/witness/witness_plugin.hpp
Outdated
Show resolved
Hide resolved
There's a race condition here. The write processing thread is started by I suggest handling this by the following strategy:
It is also tricky to keep races from occurring during shutdown. Can a block production request be in the queue when the witness plugin is destroyed? If it could, then when executing the block production request, it would try to reference a non-existing I don't think this shutdown race can occur if we only call Fortunately there's a straightforward refactor which will prevent this shutdown race:
|
Turns out the startup race can't occur because the block producer's registered in |
…ing shared pointers, minor fix for CMake build system #2717
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not merging yet, but lgtm
Closes #2717.