Update libp2p and gossipsub (#1324)

* Update libp2p and gossipsub

* Remove gossipsub lru cache
This commit is contained in:
Age Manning
2020-07-06 20:34:40 +10:00
committed by GitHub
parent f631155304
commit 5977c00edb
4 changed files with 63 additions and 76 deletions

View File

@@ -94,8 +94,8 @@ impl Default for Config {
let gs_config = GossipsubConfigBuilder::new()
.max_transmit_size(GOSSIP_MAX_SIZE)
.heartbeat_interval(Duration::from_secs(1))
.history_length(385) // A heartbeat is 1 second. We want to keep an epoch worth of history,
.manual_propagation() // require validation before propagation
.no_source_id()
.message_id_fn(gossip_message_id)
.build();