client/authority-discovery: Allow to be run by sentry node (#5568)
* client/authority-discovery: Allow to be run by sentry node When run as a sentry node, the authority discovery module does not publish any addresses to the dht, but still discovers validators and sentry nodes of validators. * client/authority-discovery/src/lib: Wrap lines at 100 characters * client/authority-discovery: Remove TODO and unused import * client/authority-discovery: Pass role to new unit tests * client/authority-discovery: Apply suggestions Co-Authored-By:André Silva <123550+andresilva@users.noreply.github.com> * bin/node/cli/src/service: Use expressions instead of statements Co-authored-by:
André Silva <123550+andresilva@users.noreply.github.com>
parent
95ee37d2
Showing
- substrate/.maintain/sentry-node/docker-compose.yml 2 additions, 4 deletionssubstrate/.maintain/sentry-node/docker-compose.yml
- substrate/bin/node/cli/src/service.rs 20 additions, 3 deletionssubstrate/bin/node/cli/src/service.rs
- substrate/client/authority-discovery/src/lib.rs 49 additions, 24 deletionssubstrate/client/authority-discovery/src/lib.rs
- substrate/client/authority-discovery/src/tests.rs 6 additions, 6 deletionssubstrate/client/authority-discovery/src/tests.rs
Please register or sign in to comment