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

Two fixes 1) Fix getBlock - it never actually pulled in transactions 2) fix nil pointer possible deref #14188

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

fxfactorial
Copy link
Contributor

  1. was trying to use op-wheel to fix a broken geth node ( Failed to decode block body ) and tried out the copy-payload command. But kept getting invalid new payload params from catalyst. Dug some more and found that there was no transactions in body.

@protolambda while your embeded struct is elegant , the transactions field doesn't get unmarshaled because the embeded struct's unmarshal method becomes the method for the whole struct, so transactions get ignored.

  1. Also playing around, hit a panic on the block payload conversion because basefee can be nil and uint256 will just give back nil which then gets blindly derefed

@fxfactorial fxfactorial requested review from a team as code owners February 5, 2025 20:26
@tynes
Copy link
Contributor

tynes commented Feb 6, 2025

/ci authorize 8414999

@tynes
Copy link
Contributor

tynes commented Feb 6, 2025

Thanks for the fixes @fxfactorial

@mslipper mslipper added this pull request to the merge queue Feb 6, 2025
Merged via the queue into ethereum-optimism:develop with commit 6fdcb54 Feb 6, 2025
46 checks passed
alcueca pushed a commit that referenced this pull request Feb 7, 2025
…2) fix nil pointer possible deref (#14188)

* Fix getBlock - it never actually pulled in transactions

* exit with error if base fee is nil
alcueca pushed a commit that referenced this pull request Feb 7, 2025
…2) fix nil pointer possible deref (#14188)

* Fix getBlock - it never actually pulled in transactions

* exit with error if base fee is nil
alcueca pushed a commit that referenced this pull request Feb 7, 2025
…2) fix nil pointer possible deref (#14188)

* Fix getBlock - it never actually pulled in transactions

* exit with error if base fee is nil
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