Skip to content

Commit

Permalink
Reject Messages With Invalid Fields in GossipSub (#7337)
Browse files Browse the repository at this point in the history
* strict no sign
* Merge branch 'master' into StrictNoSign
  • Loading branch information
nisdas authored Sep 24, 2020
1 parent 5821454 commit 7a96412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/p2p/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 7a96412

Please sign in to comment.