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

initial support for kernel data download #2765

Merged
merged 3 commits into from
May 14, 2019

Conversation

antiochp
Copy link
Member

@antiochp antiochp commented Apr 19, 2019

Extracted "kernel download" from #2743 without all the code attempting to rebuild the MMR on the receiving end.

We cannot (yet) bump the protocol version number without splitting the network (see #2764 for a fix).
So this is untouched in this PR.

If/when this is released we will have some nodes on the network that are able to provide a "kernel data" download.
We won't do anything with this just yet, but we can verify we can download it and parse the kernels out of the data.
Your node will get banned if you attempt to request a kernel data download from a peer that does not yet support this msg type. (So be careful using the /kerneldownload test api endpoint).


Proposal: Get this merged in prior to 1.1.0 being released. This way we can ideally have a healthy number of peers that support the kernel data download msg type.
Once 1.1.0 is released we can bump the protocol version if deemed necessary (#2764 adds support for flexible protocol versioning and peering).

If we can be reasonably confident most nodes support kernel data downloads then we can make progress of beginning to leverage this as part of fast sync (separate PR).

@antiochp antiochp force-pushed the minimal_kernel_download branch from 7e80734 to 34fe8e0 Compare April 25, 2019 14:31
@antiochp antiochp marked this pull request as ready for review April 25, 2019 14:35
@antiochp antiochp added this to the 1.1.0 milestone Apr 25, 2019
@ignopeverell
Copy link
Contributor

Tried to merge for you but think I messed something up...

@antiochp antiochp force-pushed the minimal_kernel_download branch from 28d4ed1 to 4f43b2f Compare May 14, 2019 12:44
@antiochp antiochp merged commit e56cd55 into mimblewimble:master May 14, 2019
@antiochp antiochp deleted the minimal_kernel_download branch May 14, 2019 16:17
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.

2 participants