Skip to content

Conversation

powerslider
Copy link

Why this should be merged

Check #4416

How this works

  • Introduce vms/evm/sync/message with request/response types:
    • BlockRequest/Response, LeafsRequest/Response, CodeRequest/Response.
  • Add Request and RequestHandler interfaces and wiring.
  • Add codec setup with versioning and max message size.
  • Add BlockSyncSummary and parser for sync bootstrap.
  • Add golden serialization tests and table-driven tests for handler dispatch and interface round-trips.

How this was tested

Existing and added UT in the package itself.

Need to be documented in RELEASES.md?

no

resolves #4416

Signed-off-by: Tsvetan Dimitrov ([email protected])

…`coreth`

- Introduce vms/evm/sync/message with request/response types:
 - BlockRequest/Response, LeafsRequest/Response, CodeRequest/Response.
- Add Request and RequestHandler interfaces and wiring.
- Add codec setup with versioning and max message size.
- Add BlockSyncSummary and parser for sync bootstrap.
- Add golden serialization tests and table-driven tests for handler dispatch and interface round-trips.

resolves #4416

Signed-off-by: Tsvetan Dimitrov ([email protected])
// BlockResponse is a response to a BlockRequest
// Blocks is slice of RLP encoded blocks starting with the block
// requested in BlockRequest.Hash. The next block is the parent, etc.
// handler: handlers.BlockRequestHandler
Copy link
Contributor

@DracoLi DracoLi Oct 14, 2025

Choose a reason for hiding this comment

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

this is referring to the handlers package in coreth right? are we looking to move this over as well?

Copy link
Author

Choose a reason for hiding this comment

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

yes, sorry I missed this reference in the comment, but the handlers will be migrated as well in a follow up PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Migrate message package from coreth

2 participants