github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/validator.go (about)

     1  package network
     2  
     3  // MessageValidator validates the incoming message. Message validation happens in the network right before it is
     4  // delivered to the network.
     5  type MessageValidator interface {
     6  	// Validate validates the message and returns true if the message is to be retained and false if it needs to be dropped
     7  	Validate(msg IncomingMessageScope) bool
     8  }