Skip to content

fix: update reorg logic #86

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

Merged
merged 2 commits into from
Feb 17, 2025
Merged

fix: update reorg logic #86

merged 2 commits into from
Feb 17, 2025

Conversation

PJColombo
Copy link
Member

It modifies the reorg handling logic by calling Blobscan API’s reorg handling endpoint before resyncing forwarded blocks.

In the event of a reorg, forwarded blocks may include transactions from rewinded blocks. If we sync the transactions from forwarded blocks first, their block field may be updated. Consequently, if these transactions were originally in a rewinded block, their reference to the old block would be lost. As a result, when calling the reorg endpoint, transactions from the rewinded block won’t be flagged as part of the reorg.

@PJColombo PJColombo force-pushed the fix/forwarded-blocks-fix branch from 7f0cd0f to 953ca06 Compare February 17, 2025 16:41
@PJColombo PJColombo merged commit 7854c8e into master Feb 17, 2025
1 check passed
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.

1 participant