validator-discovery: basic retrying logic (#3059)

* validator_discovery: less flexible, but simpler design

* fix test

* remove unused struct

* smol optimization

* validator_discovery: basic retrying logic

* add a test

* add more tests

* update the guide

* more test logic

* Require at least 2/3 connectivity.

* Fix test.

* Update node/network/gossip-support/src/lib.rs

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>

* Update node/network/gossip-support/src/lib.rs

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>

Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at>
Co-authored-by: Robert Klotzner <eskimor@users.noreply.github.com>
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2021-05-20 10:05:44 +00:00
1 parent 933c9ac2bf
commit 2e70f4ea08
9 files changed
+432 -27

No files matched your search

+2
View File
@@ -509,6 +509,7 @@ where
NetworkBridgeMessage::ConnectToValidators {
validator_ids,
peer_set,
failed,
} => {
tracing::trace!(
target: LOG_TARGET,
@@ -521,6 +522,7 @@ where
let (ns, ads) = validator_discovery.on_request(
validator_ids,
peer_set,
failed,
network_service,
authority_discovery_service,
).await;