Enum libp2p::gossipsub::MessageAcceptance
source · pub enum MessageAcceptance {
Accept,
Reject,
Ignore,
}
Expand description
Validation kinds from the application for received messages.
Variants§
Accept
The message is considered valid, and it should be delivered and forwarded to the network.
Reject
The message is considered invalid, and it should be rejected and trigger the P₄ penalty.
Ignore
The message is neither delivered nor forwarded to the network, but the router does not trigger the P₄ penalty.