reth::network

Trait FilterAnnouncement

pub trait FilterAnnouncement {
    // Required methods
    fn filter_valid_entries_68(
        &self,
        msg: PartiallyValidData<Option<(u8, usize)>>,
    ) -> (FilterOutcome, ValidAnnouncementData)
       where Self: ValidateTx68;
    fn filter_valid_entries_66(
        &self,
        msg: PartiallyValidData<Option<(u8, usize)>>,
    ) -> (FilterOutcome, ValidAnnouncementData);
}
Expand description

Filters valid entries in NewPooledTransactionHashes68 and NewPooledTransactionHashes66 in place, and flags misbehaving peers.

Required Methods§

fn filter_valid_entries_68( &self, msg: PartiallyValidData<Option<(u8, usize)>>, ) -> (FilterOutcome, ValidAnnouncementData)
where Self: ValidateTx68,

Removes invalid entries from a NewPooledTransactionHashes68 announcement. Returns FilterOutcome::ReportPeer if the caller should penalize the peer, otherwise FilterOutcome::Ok.

fn filter_valid_entries_66( &self, msg: PartiallyValidData<Option<(u8, usize)>>, ) -> (FilterOutcome, ValidAnnouncementData)

Removes invalid entries from a NewPooledTransactionHashes66 announcement. 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§