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

Refactor block executor and block appender to reduce code duplication #1485

Merged
merged 20 commits into from
Feb 20, 2023

Conversation

Harrm
Copy link
Contributor

@Harrm Harrm commented Feb 7, 2023

Referenced issues

resolves #1411

Description of the Change

Refactor the common code out of BlockExecutor and BlockAppender into BlockAppenderBase, resolve a couple of minor TODOs and renamings alongside.

Benefits

  • No code duplication.

Possible Drawbacks

  • Slightly inconvenience in testing.

@Harrm Harrm requested review from xDimon and igor-egorov February 8, 2023 08:09
@Harrm Harrm marked this pull request as ready for review February 8, 2023 08:09
core/consensus/babe/impl/block_appender_base.cpp Outdated Show resolved Hide resolved
core/consensus/babe/impl/block_appender_base.cpp Outdated Show resolved Hide resolved
core/consensus/babe/impl/block_appender_base.hpp Outdated Show resolved Hide resolved
@Harrm Harrm merged commit 4416329 into master Feb 20, 2023
@Harrm Harrm deleted the refactor/execute_block branch February 20, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor appendBlock and execute block
3 participants