From 49ab41459497d1dd77e1c4fc4d0c8583e2c72c45 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Fri, 18 Sep 2020 02:05:36 +0000 Subject: [PATCH] Shift gossipsub validation (#1612) ## Issue Addressed N/A ## Proposed Changes This will consider all gossipsub messages that have either the `from`, `seqno` or `signature` field as invalid. ## Additional Info We should not merge this until all other clients have been sending empty fields for a while. See https://github.com/ethereum/eth2.0-specs/issues/1981 for reference --- beacon_node/eth2_libp2p/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/eth2_libp2p/src/config.rs b/beacon_node/eth2_libp2p/src/config.rs index 128fb597b3..6c482cbdb0 100644 --- a/beacon_node/eth2_libp2p/src/config.rs +++ b/beacon_node/eth2_libp2p/src/config.rs @@ -103,7 +103,7 @@ impl Default for Config { .history_length(6) .history_gossip(3) .validate_messages() // require validation before propagation - .validation_mode(ValidationMode::Permissive) + .validation_mode(ValidationMode::Anonymous) // prevent duplicates for 550 heartbeats(700millis * 550) = 385 secs .duplicate_cache_time(Duration::from_secs(385)) .message_id_fn(gossip_message_id)