Skip to content
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

Optimize block processing - Part 2 #688

Merged
merged 30 commits into from
Sep 26, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Sep 3, 2024

Part 2 of 3 of #529. See #619 for part 1.

This PR only notifies producer plugin that a new incoming block is ready to be processed instead of notifying that a specific block is available.

  • Removed unused rejected_block channel. If needed in the future this will need to be a signal out of controller instead of a channel.
  • Removed unused voted_block channel. There is a controller signal for this and the channel was not used.
  • Send on_incoming_block notifications directly to producer_plugin instead of routing through the chain_plugin. I think this makes the code easier to understand.
  • Modified sync_recv_block to be called from on_accepted_block for tracking applied blocks.
  • Additional logging of exceptions in controller to compensate for no logging in net_plugin.

Partially resolves #529

@heifner heifner requested review from greg7mdp and linh2931 September 3, 2024 16:03
@heifner heifner added the OCI Work exclusive to OCI team label Sep 3, 2024
@heifner heifner linked an issue Sep 3, 2024 that may be closed by this pull request
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: INTERNALS
summary: Optimized Block Processing notifying only when new blocks are ready for processing.
Note:end

…ead has been updated. Fix off by one error in call to is_sync_request_ahead_allowed. Work-around accepted_block not called until block is irreversible in irreversible mode.
@heifner heifner requested a review from linh2931 September 20, 2024 17:49
@heifner heifner requested a review from linh2931 September 23, 2024 21:55
Base automatically changed from GH-529-optimize-block-processing to main September 26, 2024 18:43
@heifner heifner merged commit 6520b77 into main Sep 26, 2024
36 checks passed
@heifner heifner deleted the GH-529-optimize-block-processing-part2 branch September 26, 2024 18:44
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.

Optimize processing of incoming blocks
4 participants