Update discv5 and remove discovery retries (#1373)

This commit is contained in:
Age Manning 2020-07-21 14:19:55 +10:00 committed by GitHub
parent 1c90c816b7
commit 0620f54f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

6
Cargo.lock generated
View File

@ -1209,9 +1209,9 @@ checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0"
[[package]] [[package]]
name = "discv5" name = "discv5"
version = "0.1.0-alpha.6" version = "0.1.0-alpha.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d98b6912fcca9a6491fc1addcd4d205323005d922d65cb67bfed8748bc8a89b6" checksum = "d7083584562c5b36f929dbe621437a911eef4f8ac73bab1b1c64c8f556212943"
dependencies = [ dependencies = [
"arrayvec", "arrayvec",
"digest 0.8.1", "digest 0.8.1",
@ -1228,7 +1228,7 @@ dependencies = [
"multihash", "multihash",
"net2", "net2",
"openssl", "openssl",
"parking_lot 0.10.2", "parking_lot 0.11.0",
"rand 0.7.3", "rand 0.7.3",
"rlp", "rlp",
"sha2 0.8.2", "sha2 0.8.2",

View File

@ -32,7 +32,7 @@ snap = "1.0.0"
void = "1.0.2" void = "1.0.2"
tokio-io-timeout = "0.4.0" tokio-io-timeout = "0.4.0"
tokio-util = { version = "0.3.1", features = ["codec", "compat"] } tokio-util = { version = "0.3.1", features = ["codec", "compat"] }
discv5 = { version = "0.1.0-alpha.6", features = ["libp2p"] } discv5 = { version = "0.1.0-alpha.7", features = ["libp2p"] }
tiny-keccak = "2.0.2" tiny-keccak = "2.0.2"
environment = { path = "../../lighthouse/environment" } environment = { path = "../../lighthouse/environment" }

View File

@ -104,8 +104,8 @@ impl Default for Config {
.enable_packet_filter() .enable_packet_filter()
.session_cache_capacity(1000) .session_cache_capacity(1000)
.request_timeout(Duration::from_secs(4)) .request_timeout(Duration::from_secs(4))
.request_retries(2) .request_retries(1)
.enr_peer_update_min(2) // prevents NAT's should be raised for mainnet .enr_peer_update_min(10)
.query_parallelism(5) .query_parallelism(5)
.query_timeout(Duration::from_secs(30)) .query_timeout(Duration::from_secs(30))
.query_peer_timeout(Duration::from_secs(2)) .query_peer_timeout(Duration::from_secs(2))

View File

@ -21,4 +21,4 @@ slog-json = "2.3.0"
exit-future = "0.2.0" exit-future = "0.2.0"
lazy_static = "1.4.0" lazy_static = "1.4.0"
lighthouse_metrics = { path = "../../common/lighthouse_metrics" } lighthouse_metrics = { path = "../../common/lighthouse_metrics" }
discv5 = "0.1.0-alpha.6" discv5 = "0.1.0-alpha.7"