tuweni / org.apache.tuweni.plumtree / MessageValidator

MessageValidator

interface MessageValidator (source)

Validator for a message and a peer. This validator is called prior to gossiping the message from that peer to other peers.

Functions

validate

Validates that the message from the peer is valid.

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