diff --git a/beacon_node/eth2_libp2p/src/config.rs b/beacon_node/eth2_libp2p/src/config.rs index 0d974c977..f3fbbda53 100644 --- a/beacon_node/eth2_libp2p/src/config.rs +++ b/beacon_node/eth2_libp2p/src/config.rs @@ -92,7 +92,7 @@ impl Default for Config { // The function used to generate a gossipsub message id // We use the first 8 bytes of SHA256(data) for content addressing let gossip_message_id = - |message: &GossipsubMessage| MessageId::from(&Sha256::digest(&message.data)[..8]); + |message: &GossipsubMessage| MessageId::from(&Sha256::digest(&message.data)[..]); // gossipsub configuration // Note: The topics by default are sent as plain strings. Hashes are an optional