Skip to content

Conversation

heifner
Copy link
Member

@heifner heifner commented Apr 29, 2024

  • Moves create and send vote off the main thread.
  • Also adds test to verify vote-threads=0 works for a finalizer without a producer.

Resolves #58

@heifner heifner requested review from linh2931 and greg7mdp April 29, 2024 13:29
@heifner heifner added the OCI Work exclusive to OCI team label Apr 29, 2024
@heifner heifner marked this pull request as draft April 29, 2024 14:20
@heifner
Copy link
Member Author

heifner commented Apr 29, 2024

Made this Draft. Waiting on update to finalizer tests that are in progress #47.

@greg7mdp
Copy link
Contributor

Made this Draft. Waiting on update to finalizer tests that are in progress #47.

I don't believe you have to make it draft as #47 doesn't change tests related to voting.

@@ -3903,19 +3909,29 @@ struct controller_impl {
}
}

void consider_voting(const block_state_legacy_ptr&) {}

enum class main_thread_t { no, yes };
Copy link
Contributor

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.

Base automatically changed from savanna to main April 29, 2024 18:39
@heifner heifner marked this pull request as ready for review April 30, 2024 11:43
@heifner heifner merged commit 8a5716c into main May 1, 2024
@heifner heifner deleted the GH-58-finalizer branch May 1, 2024 01:14
@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: INTERNALS
summary: Move create and send vote off the main thread.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow node with finalizer keys (but no producers) to have no vote-threads
4 participants