From 7a96412ef2fddd7aa03a2f2841a892c30d00034f Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Fri, 25 Sep 2020 07:53:15 +0800 Subject: [PATCH] Reject Messages With Invalid Fields in GossipSub (#7337) * strict no sign * Merge branch 'master' into StrictNoSign --- beacon-chain/p2p/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon-chain/p2p/service.go b/beacon-chain/p2p/service.go index 2490d758b00a..0516e7fadcd2 100644 --- a/beacon-chain/p2p/service.go +++ b/beacon-chain/p2p/service.go @@ -148,7 +148,7 @@ func NewService(ctx context.Context, cfg *Config) (*Service, error) { // account previously added peers when creating the gossipsub // object. psOpts := []pubsub.Option{ - pubsub.WithMessageSignaturePolicy(pubsub.LaxNoSign), + pubsub.WithMessageSignaturePolicy(pubsub.StrictNoSign), pubsub.WithNoAuthor(), pubsub.WithMessageIdFn(msgIDFunction), }