-
Notifications
You must be signed in to change notification settings - Fork 15
IF: Move create and send vote off the main thread #86
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
Conversation
Made this Draft. Waiting on update to finalizer tests that are in progress #47. |
libraries/chain/controller.cpp
Outdated
@@ -3903,19 +3909,29 @@ struct controller_impl { | |||
} | |||
} | |||
|
|||
void consider_voting(const block_state_legacy_ptr&) {} | |||
|
|||
enum class main_thread_t { no, yes }; |
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.
I think it would be a little bit clearer to have the type named enum use_thread_pool_t { no, yes };
so it describes the desired behavior rather than the context of the call.
Note:start |
vote-threads=0
works for a finalizer without a producer.Resolves #58