forked from decred/dcrwallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spv: Implement per-peer increasing backoffs
Backoff for discovered peers begins at 5s and adds an exponentially-decaying increase before maxing out at 90s. Persistent peers use a smaller scaled backoff curve starting at 1s and maxing out at 18s). All backoffs include a small amount of random jitter to avoid reconnection storms at syncer startup. Backoffs are reset if network connection is established to the peer.
- Loading branch information
Showing
1 changed file
with
90 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters