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

[WIP] Improved ExWire Block Sync #694

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Dec 1, 2018

  1. Fix Frame Size Issue

    When packets come in, sometimes they are incomplete. We previously handled packets that had a valid header but insufficient body size. This patch adds support for packets that don't even have complete headers. We queue the packet into queued data and wait for more data before processing.
    hayesgm committed Dec 1, 2018
    Configuration menu
    Copy the full SHA
    52c0538 View commit details
    Browse the repository at this point in the history
  2. Connect Warp Sync to Proper Packets

    This patch connects Warp Sync to the correct packets that come back from Parity when warp syncing. There were a few issues with the algorithm for determining packet ids. It appears that each capability has a size (to allow for protocol upgrades) and we skip that many before the next protocol. These aren't documented from come by Parity's source code. Additionally, it appears that once you negotiate a protocol, you still use the offests from Pv62 but from the higher negotiated ids. It's all a bit weird, but this seems to get everything working. Finally, we had an issue with default map getting called *a lot*, so we instead opt to hard-code the value and try to pass nil around instead of default map.
    hayesgm committed Dec 1, 2018
    Configuration menu
    Copy the full SHA
    0ee08a9 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2018

  1. Configuration menu
    Copy the full SHA
    6a01be5 View commit details
    Browse the repository at this point in the history
  2. Add fast options

    hayesgm committed Dec 2, 2018
    Configuration menu
    Copy the full SHA
    132f084 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2018

  1. Configuration menu
    Copy the full SHA
    4e81268 View commit details
    Browse the repository at this point in the history