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: separate block sealing logic from executing txs #389

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

itegulov
Copy link
Contributor

What 💻

Hefty refactoring of block sealing into its own logical layer on top of tx execution. This opens up a way to support several txs per block and dynamic block sealing in general. This PR also gets rid of all the ad-hoc empty block logic and instead replaces them with seal_block([]). Making us have a centralized place where all the blocks are created and thus this PR closes #358

The code is still pretty messy but I want to gradually improve it as I suspect many things here will go into separate subcomponents (e.g. BlockSealer, BatchSealer etc)

Why ✋

Entangled sealing logic made it very hard to make it customizable for #362

@itegulov itegulov requested a review from a team as a code owner November 19, 2024 08:39
src/node/in_memory_ext.rs Outdated Show resolved Hide resolved
src/node/in_memory_ext.rs Outdated Show resolved Hide resolved
src/node/in_memory_ext.rs Outdated Show resolved Hide resolved
@itegulov itegulov merged commit 2bb843d into main Nov 19, 2024
10 checks passed
@itegulov itegulov deleted the daniyar/refactor-block-sealing-v2 branch November 19, 2024 12:10
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.

Correctly fill block details
2 participants