abstract fun validate(message: Bytes!, peer: Peer!): Boolean (source)
Validates that the message from the peer is valid.
message - Bytes!: the payload sent over the network
peer - Peer!: the peer that sent the message
Return
Boolean: true if the message is valid