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

op-node: Handle malformed/incomplete receipt data from L1 #8245

Closed
protolambda opened this issue Nov 22, 2023 · 8 comments
Closed

op-node: Handle malformed/incomplete receipt data from L1 #8245

protolambda opened this issue Nov 22, 2023 · 8 comments
Labels
A-op-node Area: op-node

Comments

@protolambda
Copy link
Contributor

Bug-reports specify that Besu as L1 RPC returns receipt data with invalid log-index attributes. Since these can be inferred, rather than logging that the data is wrong, we can correct the data (if the receipts-root still matches the consensus data). This data "hydration" is also already happening for the raw receipts of the debug-geth RPC kind. And then, on the mismatch, just make a verbose log of what's wrong about the response exactly, so the L1 client can be fixed.

@protolambda protolambda added the A-op-node Area: op-node label Nov 22, 2023
@ajsutton
Copy link
Contributor

Do we have a link to the bug reports? I know a while back besu was starting log index from 0 for each transaction rather than each block but I thought that had been fixed.

Fixing the data also sounds like a good idea so long as anything important to us is covered by the checks against the block hash.

@protolambda
Copy link
Contributor Author

Regarding Besu log index: see the errors in the screenshot in ethereum-optimism/developers#59 (comment)

@ajsutton
Copy link
Contributor

Ah yeah that very much looks like hyperledger/besu#4114 which should be fixed in the latest besu (but may have regressed).

@protolambda
Copy link
Contributor Author

@ajsutton that issue is a year old, it must have regressed, or the user wouldn't be able to sync the latest L1 chain with it.

@ajsutton
Copy link
Contributor

oh good point, I missed the 2022 part of the date. The error message would fit perfectly with that bug though...

@ajsutton
Copy link
Contributor

Ah that fix was only for eth_getLogs. Almost certain the eth_getReceipt will have the same bug - just seeing if I can find someone with an existing besu node to confirm.

@ajsutton
Copy link
Contributor

Confirmed, so I've logged hyperledger/besu#6204

@protolambda
Copy link
Contributor Author

Looks like this was fixed in Besu. Can we close this issue? @ajsutton

@tynes tynes closed this as completed Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-node Area: op-node
Projects
None yet
Development

No branches or pull requests

5 participants
@ajsutton @tynes @protolambda and others