pub trait PartiallyFilterMessage {
    // Provided method
    fn partially_filter_valid_entries<V>(
        &self,
        msg: impl DedupPayload<Value = V> + Debug,
    ) -> (FilterOutcome, PartiallyValidData<V>) { ... }
}
Expand description

Generic filter for announcements and responses. Checks for empty message and unique hashes/ transactions in message.

Provided Methods§

source

fn partially_filter_valid_entries<V>( &self, msg: impl DedupPayload<Value = V> + Debug, ) -> (FilterOutcome, PartiallyValidData<V>)

Removes duplicate entries from a mempool message. Returns FilterOutcome::ReportPeer if the caller should penalize the peer, otherwise FilterOutcome::Ok.

Object Safety§

This trait is not object safe.

Implementors§