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 ots_searchTransactions* rpc-tests #12357

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

wmitsuda
Copy link
Member

fixes #12248

This PR retrofits the receipts generator and remove lots of custom code in order to fix the tests.

However it should be noticed that the receipts generator currently replays the entire block and doesn't consume the receipts domain, i.e., eth_getTransactionReceipt still suffers from the same issue.

From our conversation on Discord, Illya is working on it, so let's wait for his work be finished and we can retrofit his optimizations if needed.

Also, I'm reenabling all ots_searchTransactions* rpc-tests, leaving only ots_searchTransactionsBefore/test_13.json out. From my analysis so far, that one is breaking because of another unrelated exception, so I need more time to debug separately.

@wmitsuda wmitsuda enabled auto-merge (squash) October 17, 2024 21:56
if isFinalTxn {
continue
}

if mustReadHeader {
if header, err = api._blockReader.HeaderByNumber(ctx, tx, blockNum); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@JkLondon after switching api of receiptsGenerator.GetReceipt from block to header - will need to update user's code to read header instead of block (where can).

@wmitsuda wmitsuda merged commit 3126c30 into main Oct 18, 2024
11 checks passed
@wmitsuda wmitsuda deleted the wmitsuda/fix-rpc-tests-ots_search_transactions branch October 18, 2024 04:08
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.

Incorrect Gas Values in OTS Search Tests
2 participants