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

fix(net): reset block demand when not changed #1167

Commits on Jan 26, 2021

  1. fix(net): reset block demand when not changed

    [changelog skip]
    moreal committed Jan 26, 2021
    Configuration menu
    Copy the full SHA
    f75957a View commit details
    Browse the repository at this point in the history
  2. test: reset block demand if not changed

    This commit checks the situation like below steps
     - Received `BlockHeader` 19 and `BlockDemand` 19 block.
     - `ProcessFillBlocks()` starts to download the 19 blocks.
     - Received `BlockHeader` 20 and `BlockDemand` 20 block.
     - `ProcessFillBlocks()` finished to download the 19 blocks and reset
       `Swarm<T>.BlockDemand` as `null`.
     - Though `BlockHeader` 101 was received, it will be ignored.
    
    [changelog skip]
    moreal committed Jan 26, 2021
    Configuration menu
    Copy the full SHA
    e14af51 View commit details
    Browse the repository at this point in the history