Skip to content
This repository has been archived by the owner on Dec 29, 2018. It is now read-only.

Merge P2P fixes from steem #61

Merged
merged 3 commits into from
Jan 21, 2018
Merged

Commits on Jan 17, 2018

  1. Relax timing restrictions when syncing blockchain. When we

    request several blocks from a peer at once, base our timeout on
    the last block we've received from the peer instead of on the
    time of our request.
    emfrias authored and pmconrad committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    794efd3 View commit details
    Browse the repository at this point in the history
  2. Fix bug where peers could get stuck in sync mode.

    There was a case where we had requested a block through the sync
    mechanism and also received it through the normal inventory mechanism
    where we would leave the peer in a sync state, but never ask them
    for more sync blocks.
    
    This commit fixes the bug that put us into that stuck state, and also
    adds code to disconnect peers if we ever manage to get into that stalled
    state.
    
    Conflicts:
    	libraries/net/node.cpp
    emfrias authored and pmconrad committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    b698809 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    faf1c68 View commit details
    Browse the repository at this point in the history