plumtree / 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

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

Validates that the message from the peer is valid.