-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
authority-discovery: Populate DHT records with public listen addresses (
#6298) This PR's main goal is to add public listen addresses to the DHT authorities records. This change improves the discoverability of validators that did not provide the `--public-addresses` flag. This PR populates the authority DHT records with public listen addresses if any. The change effectively ensures that addresses are added to the DHT record in following order: 1. Public addresses provided by CLI `--public-addresses` 2. Maximum of 4 public (global) listen addresses (if any) 3. Any external addresses discovered from the network (ie from `/identify` protocol) While at it, this PR adds the following constraints on the number of addresses: - Total number of addresses cached is bounded at 16 (increased from 10). - A maximum number of 32 addresses are published to DHT records (previously unbounded). - A maximum of 4 global listen addresses are utilized. This PR also removes the following warning: `WARNING: No public address specified, validator node may not be reachable.` ### Next Steps - [ ] deploy and monitor in versi network Closes: #6280 Part of: #5266 cc @paritytech/networking --------- Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Dmitry Markin <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> (cherry picked from commit 762f824)
- Loading branch information
1 parent
c1b64eb
commit 2fe297d
Showing
4 changed files
with
153 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
title: Populate authority DHT records with public listen addresses | ||
|
||
doc: | ||
- audience: [ Node Dev, Node Operator ] | ||
description: | | ||
This PR populates the authority DHT records with public listen addresses if any. | ||
The change effectively ensures that addresses are added to the DHT record in the | ||
following order: | ||
1. Public addresses provided by CLI `--public-addresses` | ||
2. Maximum of 4 public (global) listen addresses (if any) | ||
3. Any external addresses discovered from the network (ie from `/identify` protocol) | ||
|
||
While at it, this PR adds the following constraints on the number of addresses: | ||
- Total number of addresses cached is bounded at 16 (increased from 10). | ||
- A maximum number of 32 addresses are published to DHT records (previously unbounded). | ||
- A maximum of 4 global listen addresses are utilized. | ||
|
||
This PR replaces the following warning: | ||
`WARNING: No public address specified, validator node may not be reachable.` | ||
with a more descriptive one originated from the authority-discovery | ||
mechanism itself: `No public addresses configured and no global listen addresses found`. | ||
|
||
crates: | ||
- name: sc-authority-discovery | ||
bump: patch |
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
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