Update libp2p and updates gossipsub (#764)
* Update gossipsub, adds anonymous source * Remove temp protobuf fix
This commit is contained in:
parent
7320f8497f
commit
55680ab1d3
756
Cargo.lock
generated
756
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -8,8 +8,8 @@ edition = "2018"
|
||||
hex = "0.3"
|
||||
# rust-libp2p is presently being sourced from a Sigma Prime fork of the
|
||||
# `libp2p/rust-libp2p` repository.
|
||||
libp2p = { git = "https://github.com/SigP/rust-libp2p", rev = "65d413ecf32b7ffaa2b607d9c6ce93640fed50cf" }
|
||||
enr = { git = "https://github.com/SigP/rust-libp2p/", rev = "65d413ecf32b7ffaa2b607d9c6ce93640fed50cf", features = ["serde"] }
|
||||
libp2p = { git = "https://github.com/SigP/rust-libp2p", rev = "c0c71fa4d7e6621cafe2c087d1aa1bc60dd9116e" }
|
||||
enr = { git = "https://github.com/SigP/rust-libp2p/", rev = "c0c71fa4d7e6621cafe2c087d1aa1bc60dd9116e", features = ["serde"] }
|
||||
types = { path = "../../eth2/types" }
|
||||
serde = "1.0.102"
|
||||
serde_derive = "1.0.102"
|
||||
|
@ -95,7 +95,8 @@ impl Default for Config {
|
||||
gs_config: GossipsubConfigBuilder::new()
|
||||
.max_transmit_size(1_048_576)
|
||||
.heartbeat_interval(Duration::from_secs(20)) // TODO: Reduce for mainnet
|
||||
.manual_propagation(true) // require validation before propagation
|
||||
.manual_propagation() // require validation before propagation
|
||||
.no_source_id()
|
||||
.message_id_fn(gossip_message_id)
|
||||
.build(),
|
||||
boot_nodes: vec![],
|
||||
|
@ -19,5 +19,3 @@ environment = { path = "./environment" }
|
||||
futures = "0.1.25"
|
||||
validator_client = { "path" = "../validator_client" }
|
||||
account_manager = { "path" = "../account_manager" }
|
||||
# TODO: remove this once @agemanning adds a permanent fix.
|
||||
protobuf = "=2.8.1"
|
||||
|
Loading…
Reference in New Issue
Block a user