Skip to content

geyser: refactor block reconstruction using block-machine#750

Merged
lvboudre merged 3 commits into
masterfrom
refactor-block-building
Jun 2, 2026
Merged

geyser: refactor block reconstruction using block-machine#750
lvboudre merged 3 commits into
masterfrom
refactor-block-building

Conversation

@lvboudre
Copy link
Copy Markdown
Contributor

@lvboudre lvboudre commented Jun 2, 2026

This PR remove most of the legacy code around rebuilding block and managing rooted tree, it is now entirely done using yellowstone-block-machine crate + block_reconstruction.rs.

The PR also make sure the geyser_loop preserves the ordering guarantee as the old version. A detailed docstring is present that explain every edge case.

It also removes some Arc clones and vector scans on each commitment promotion.

This PR is part of a bigger initiative to optimize the plugin, and this PR role is to simplify as much as possible the geyser loop to enable more aggressive optimization and code-reshaping.

@lvboudre lvboudre requested review from Synestraa and leafaar and removed request for leafaar June 2, 2026 15:12
@lvboudre lvboudre force-pushed the refactor-block-building branch from bc77da7 to 5821747 Compare June 2, 2026 15:16
Copy link
Copy Markdown
Contributor

@leafaar leafaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Contributor

@Synestraa Synestraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed a small optimization in geyser_loop. The rest looks good

@Synestraa Synestraa force-pushed the refactor-block-building branch from fbf065f to abc6671 Compare June 2, 2026 17:36
@lvboudre lvboudre merged commit f7087d3 into master Jun 2, 2026
4 checks passed
@lvboudre lvboudre deleted the refactor-block-building branch June 2, 2026 19:44
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.

3 participants