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(op-node): pre-fetching handle L1 reOrg round 2 #117

Merged

Conversation

welkin22
Copy link
Contributor

Description

In #115, I added the ability to handle L1 reorganization to pre-fetching. During testing, I found that if the cache already exists, blockInfo should also be added to blockInfoChan, which avoids oldestBlockParentHash and parentHash being incorrectly set to common.hash.

Rationale

Even if the cache already exists, blockInfo should be stuffed into blockInfoChan to avoid incorrect recording of the parent hash.
In addition, due to the higher reliability requirements for pre-fetching, PreFetchReceipts will continue to loop until successful after returning err.

Example

none

Changes

Notable changes:

  • Some minor logic changes for GoOrUpdatePreFetchReceipts

Copy link

@andyzhang2023 andyzhang2023 left a comment

Choose a reason for hiding this comment

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

looks good.

@welkin22 welkin22 merged commit 5c5bf63 into bnb-chain:develop Jan 30, 2024
10 checks 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.

3 participants