Remove padding from gossipsub ids (#1083)
This commit is contained in:
parent
18ca94dc29
commit
78a08ec1e6
@ -92,7 +92,7 @@ impl Default for Config {
|
|||||||
let gossip_message_id = |message: &GossipsubMessage| {
|
let gossip_message_id = |message: &GossipsubMessage| {
|
||||||
MessageId(base64::encode_config(
|
MessageId(base64::encode_config(
|
||||||
&Sha256::digest(&message.data),
|
&Sha256::digest(&message.data),
|
||||||
base64::URL_SAFE,
|
base64::URL_SAFE_NO_PAD,
|
||||||
))
|
))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user