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

fix: revamp reorg handling logic #63

Merged
merged 11 commits into from
Mar 10, 2024
Merged

Conversation

PJColombo
Copy link
Member

It requires the api changes from the following PR: #272.

This PR changes the way the indexer is handling reorgs. It specifically removes the problematic reorg handling logic within the synchronizer and slots-processor components and it introduces an update that enables the indexer to now listen for chain_reorg SSE (Server-Sent Events) and then identifying the slots associated with the forked blocks and subsequently invoking the updated blobscan's reorg handling endpoint.

@PJColombo PJColombo changed the title fix: update reorg handling logic fix: revamp reorg handling logic Mar 10, 2024
Copy link
Member

@0xGabi 0xGabi left a comment

Choose a reason for hiding this comment

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

Well done!

I left a couple of reviews.

src/utils/web3.rs Outdated Show resolved Hide resolved
src/env.rs Show resolved Hide resolved
@PJColombo PJColombo merged commit 0d974fc into master Mar 10, 2024
4 checks passed
@PJColombo PJColombo deleted the fix/reorg-blocks-handling branch March 10, 2024 14: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.

2 participants