-
Notifications
You must be signed in to change notification settings - Fork 810
chore(sync/message): migrate message package for EVM state sync from coreth
#4417
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
base: master
Are you sure you want to change the base?
Conversation
…`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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Why this should be merged
Check #4416
How this works
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])