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

feat(engine-util): reorg interceptor #10173

Merged
merged 5 commits into from
Aug 7, 2024
Merged

Conversation

rkrasiuk
Copy link
Member

@rkrasiuk rkrasiuk commented Aug 7, 2024

Description

Supersedes #8110.

Create a stream wrapper that can simulate reorgs for block n based on the contents of block n + 1.

@rkrasiuk rkrasiuk added A-consensus Related to the consensus engine C-test A change that impacts how or what we test labels Aug 7, 2024
@rkrasiuk rkrasiuk force-pushed the rkrasiuk/reorg-engine-interceptor2 branch from fc4cf05 to cd22aea Compare August 7, 2024 15:32
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

I'm realizing that we could improve a lot of building ergonomics...

this is not integrated into the EthNodeLauncher but we can do that separately

Comment on lines +154 to +155
// TODO: This is an expensive blocking operation, ideally it's spawned
// as a task so that the stream could yield the control back.
Copy link
Collaborator

Choose a reason for hiding this comment

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

should be okay for debugging

&mut block_env,
chain_spec,
&reorg_target.header,
U256::MAX, // TODO:
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is okay because no longer relevant for beacon consensus

@rkrasiuk rkrasiuk added this pull request to the merge queue Aug 7, 2024
Merged via the queue into main with commit d62ce79 Aug 7, 2024
34 checks passed
@rkrasiuk rkrasiuk deleted the rkrasiuk/reorg-engine-interceptor2 branch August 7, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consensus Related to the consensus engine C-test A change that impacts how or what we test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants