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

Refactor block/header serialization in RPC - remove duplicite code #143

Merged
merged 4 commits into from
Jun 9, 2024

Conversation

thaarok
Copy link
Collaborator

@thaarok thaarok commented May 30, 2024

The block/header JSON serialization is duplicated between ethapi (regular RPC queries) and filters (handling of eth_subscribe(newHeads)) - this moves this serialization into a single place and ensures the same format for both.

Copy link
Collaborator

@HerbertJordan HerbertJordan left a comment

Choose a reason for hiding this comment

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

As for other changes in the Sonic client, I can merely do a rough sanity check on the code. I can not judge the implication of those changes on the overall system.

ethapi/api.go Outdated Show resolved Hide resolved
ethapi/api.go Outdated Show resolved Hide resolved
Base automatically changed from jk/ethereum-upgrade to develop June 6, 2024 09:14
@thaarok thaarok force-pushed the jk/ethup-refac-header-json branch from 5a4b4ed to c5ae1db Compare June 7, 2024 06:29
@thaarok thaarok requested a review from jmpike June 7, 2024 06:59
@thaarok thaarok merged commit 1507471 into develop Jun 9, 2024
1 check passed
@thaarok thaarok deleted the jk/ethup-refac-header-json branch June 9, 2024 13:44
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