client/authority-discovery: Limit the amount of sentries per authority (#4302)

When receiving more addresses for a given authority than a defined
threshold (5), the authority discovery drops the remaining in order to
prevent a single authority to fill all priority group slots.
This commit is contained in:
Max Inden
2019-12-05 16:05:42 +01:00
committed by Gavin Wood
parent 2231c06294
commit af3fc1d95a
3 changed files with 22 additions and 1 deletions
+1
View File
@@ -4814,6 +4814,7 @@ version = "2.0.0"
dependencies = [
"bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",
"derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
"futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"futures-timer 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
"libp2p 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)",