From d00350bf752853c5de5a53a643a23b20c7bc1f54 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Mon, 22 Apr 2019 12:44:36 -0400 Subject: [PATCH] disable pubsub signatures and verification (#2339) --- shared/p2p/service.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/shared/p2p/service.go b/shared/p2p/service.go index 6b06926c34ec..af0b01c48ee9 100644 --- a/shared/p2p/service.go +++ b/shared/p2p/service.go @@ -86,11 +86,15 @@ func NewServer(cfg *ServerConfig) (*Server, error) { // distributed hash table by their peer ID. h = rhost.Wrap(h, dht) + psOpts := []pubsub.Option{ + pubsub.WithMessageSigning(false), + pubsub.WithStrictSignatureVerification(false), + } var gsub *pubsub.PubSub if featureconfig.FeatureConfig().DisableGossipSub { - gsub, err = pubsub.NewFloodSub(ctx, h) + gsub, err = pubsub.NewFloodSub(ctx, h, psOpts...) } else { - gsub, err = pubsub.NewGossipSub(ctx, h) + gsub, err = pubsub.NewGossipSub(ctx, h, psOpts...) } if err != nil { cancel()