Remove padding from gossipsub ids (#1083)

This commit is contained in:
Age Manning 2020-04-30 15:33:53 +10:00 committed by GitHub
parent 18ca94dc29
commit 78a08ec1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ impl Default for Config {
let gossip_message_id = |message: &GossipsubMessage| {
MessageId(base64::encode_config(
&Sha256::digest(&message.data),
base64::URL_SAFE,
base64::URL_SAFE_NO_PAD,
))
};