reth_network::transactions::validation

Trait PartiallyFilterMessage

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§