-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add randomization on node addresses (#2123)
Instead of always using the last known peer address from the `PeersDb`, we randomly pick the address from the `PeersDb` and the `NetworkDb`. We use clearnet or tor addresses depending on the node configuration: - tor not supported: always use clearnet addresses - tor supported but not enabled for clearnet addresses: use clearnet addresses when available - tor supported and enabled for clearnet addresses: use tor addresses when available
- Loading branch information
Showing
2 changed files
with
76 additions
and
8 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