diff --git a/core/coreapi/node.go b/core/coreapi/node.go index 25acfdd72f7..0e908ed8e99 100644 --- a/core/coreapi/node.go +++ b/core/coreapi/node.go @@ -457,13 +457,9 @@ func configSwarm(swarm config.SwarmConfig, exp config.Experiments) Option { } func configPubsub(ps config.PubsubConfig) Option { - var pubsubOptions []pubsub.Option - if ps.DisableSigning { - pubsubOptions = append(pubsubOptions, pubsub.WithMessageSigning(false)) - } - - if ps.StrictSignatureVerification { - pubsubOptions = append(pubsubOptions, pubsub.WithStrictSignatureVerification(true)) + pubsubOptions := []pubsub.Option{ + pubsub.WithMessageSigning(!ps.DisableSigning), + pubsub.WithStrictSignatureVerification(ps.StrictSignatureVerification), } switch ps.Router { @@ -658,7 +654,6 @@ func defaults() settings { out.components[ProviderKeys] = fx.Provide(simple.NewBlockstoreProvider) out.components[Reprovider] = fx.Provide(node.SimpleReprovider(node.DefaultReprovideFrequency)) - out.components[Exchange] = fx.Provide(offline.Exchange) out.components[Namesys] = fx.Provide(node.Namesys(0)) out.components[Blockservice] = fx.Provide(node.BlockService)