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

print empty batchl2data and custom batch 0 cases for getBatchByNumber #1031

Conversation

V-Staykov
Copy link
Collaborator

No description provided.

@V-Staykov V-Staykov marked this pull request as ready for review August 27, 2024 10:48
Copy link
Collaborator

@hexoscott hexoscott left a comment

Choose a reason for hiding this comment

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

Looks fine, but I'm worried about new things being added around GERs in the batch data. We've had a lot of fighting with zkevm_getBatchByNumber having exit root problems which are now stable. I think we'll want to test these changes in some network that has a legacy node syncing from erigon RPC to verify these changes are OK.

@V-Staykov
Copy link
Collaborator Author

zkevm_getBatchByNumber is still not matching legacy for a lot of stuff. The GER's are not completely fixed but they were wrong before anyways. We are kind of blocked right now, because on legacy there seems to be some strange behavios around printing GERs on batches where it wasn't changed.

@hexoscott
Copy link
Collaborator

@revitteth - would be ace if you can weigh in on this one as you're more familiar with the exit root stuff

@revitteth
Copy link
Collaborator

@revitteth - would be ace if you can weigh in on this one as you're more familiar with the exit root stuff

Yeah, looks good to me!

Copy link
Collaborator

@hexoscott hexoscott left a comment

Choose a reason for hiding this comment

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

If Max is happy with the changes the code looks fine to me

Copy link

sonarcloud bot commented Sep 4, 2024

@V-Staykov V-Staykov enabled auto-merge (squash) September 4, 2024 06:56
@V-Staykov V-Staykov merged commit beec77d into zkevm Sep 4, 2024
10 checks passed
@V-Staykov V-Staykov deleted the 1021-rpc-zkevm_getbatchbynumber-is-returning-wrong-fields-for-batches-0-and-1 branch September 4, 2024 06:57
Damantino pushed a commit to Damantino/cdk-erigon that referenced this pull request Sep 4, 2024
…0xPolygonHermez#1031)

* print empty batchl2data and custom batch 0 cases for getBatchByNumber

* add changeblocktx data to batchl2data only after forkid7

* add block not found for batch query

* ger writing fix for getBatchByNumber

* remove missing method from interfaces
Stefan-Ethernal pushed a commit that referenced this pull request Sep 20, 2024
…#1031)

* print empty batchl2data and custom batch 0 cases for getBatchByNumber

* add changeblocktx data to batchl2data only after forkid7

* add block not found for batch query

* ger writing fix for getBatchByNumber

* remove missing method from interfaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RPC] zkevm_getBatchByNumber is returning wrong fields for batches 0 and 1
3 participants