github.com/koko1123/flow-go-1@v0.29.6/network/validator.go (about) 1 package network 2 3 // MessageValidator validates the incoming message. Message validation happens in the middleware 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 }