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

p2p: make block download logic aware of limited peers threshold #28120

Merged
merged 3 commits into from
Mar 11, 2024

Commits on Feb 1, 2024

  1. refactor: Make FindNextBlocks friendlier

    No behavior change.
    furszy committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    7312772 View commit details
    Browse the repository at this point in the history
  2. p2p: sync from limited peer, only request blocks below threshold

    Requesting historical blocks from network limited peers is a
    direct disconnection cause.
    The node must only request the blocks who know for sure the
    limited peer can provide.
    furszy committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    2f6a055 View commit details
    Browse the repository at this point in the history
  3. test: avoid requesting blocks beyond limited peer threshold

    Even when the node believes it completed IBD, need to avoid
    requesting historical blocks from network-limited peers.
    Otherwise, the limited peer will disconnect right away.
    furszy committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    c5b5843 View commit details
    Browse the repository at this point in the history