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

Pre-Shapella blocks must have nil withdrawals #13027

Merged
merged 3 commits into from
Dec 10, 2024
Merged

Conversation

yperbasis
Copy link
Member

Apparently we saved some pre-Shappella blocks into snapshots with empty rather than nil withdrawals. This is a work-around for issues like #12297 to avoid regenerating block snapshots. You can see the problem by running

curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x103716A",false],"id":1}' http://localhost:8545

@somnathb1
Copy link
Contributor

If the hack works, it's okay for now. But the hack/fix should be applied at the snapshots reader code. I don't know if older snapshots are forever immutable for Erigon2, but we may need to alter the snapshots too.

@yperbasis
Copy link
Member Author

If the hack works, it's okay for now. But the hack/fix should be applied at the snapshots reader code. I don't know if older snapshots are forever immutable for Erigon2, but we may need to alter the snapshots too.

OK, I moved the hack to the snapshots reader. (I had to cherry pick PR #13028.)

Perhaps we can regenerate block snapshots after E3 is released.

@yperbasis yperbasis enabled auto-merge (squash) December 10, 2024 12:53
@yperbasis yperbasis merged commit 478a1da into release/2.60 Dec 10, 2024
5 checks passed
@yperbasis yperbasis deleted the fix12297 branch December 10, 2024 13:01
yperbasis added a commit that referenced this pull request Dec 10, 2024
Apparently we saved some pre-Shappella blocks into snapshots with empty
rather than nil withdrawals. This is a work-around for issues like
#12297 to avoid regenerating block snapshots. You can see the problem by
running
```
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x103716A",false],"id":1}' http://localhost:8545
```
yperbasis added a commit that referenced this pull request Dec 10, 2024
yperbasis added a commit that referenced this pull request Dec 12, 2024
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.

incompatibility with lighthouse for certain pre-capella post-merge blocks
2 participants