tuweni / org.apache.tuweni.plumtree / MessageValidator / validate

validate

abstract fun validate(message: Bytes!, peer: Peer!): Boolean (source)

Validates that the message from the peer is valid.

Parameters

message - Bytes!: the payload sent over the network

peer - Peer!: the peer that sent the message

Return
Boolean: true if the message is valid