-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve initial connection times (#6343)
Description --- Improved initial connection times from a dht perspective for nodes at startup when all previous connections to peers failed, as well as when a node lost all connectivity. With this PR a node will attempt to connect to peers with previously failed attempts under such circumstances, improving general connectivity. Nodes will refresh their dht neighbour list without discriminating against those peers so that all nodes can be tried again. Motivation and Context --- When a node starts up or loses all connectivity and all known peers have had a failed connection, the node will wait for a 24-hour cooldown period before the same nodes are contacted again. How Has This Been Tested? --- System-level testing. What process can a PR reviewer use to test or verify this change? --- Code review. <!-- Checklist --> <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> <!-- BREAKING CHANGE: Description what the user should do, e.g. delete a database, resync the chain -->
- Loading branch information
1 parent
16ca4b5
commit 64e650b
Showing
2 changed files
with
29 additions
and
21 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
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