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

Add GET_BLOCK_PARTS message #146

Merged
merged 2 commits into from
Mar 12, 2019

Conversation

semuxgo
Copy link
Contributor

@semuxgo semuxgo commented Mar 9, 2019

I'd propose to add two message types to support light clients.

  • GET_BLOCK_PARTS - block parts (header, transaction, receipts, votes) request
  • BLOCK_PARTS - block parts response

In the short-term, we can use these protocols to speed up the syncing by not requesting block votes.


public class GetBlockPartsMessage extends Message {

public static final int BLOCK_HEADER = 1 << 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make enum?

@semuxgo semuxgo force-pushed the p2p-block-with-no-votes branch from b03e62f to ad9d50d Compare March 11, 2019 23:11
@semuxgo semuxgo merged commit 1e18aab into semuxproject:develop Mar 12, 2019
@semuxgo semuxgo mentioned this pull request Apr 21, 2019
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.

2 participants