pub trait FilterAnnouncement {
// Required methods
fn filter_valid_entries_68(
&self,
msg: PartiallyValidData<Eth68TxMetadata>,
) -> (FilterOutcome, ValidAnnouncementData)
where Self: ValidateTx68;
fn filter_valid_entries_66(
&self,
msg: PartiallyValidData<Eth68TxMetadata>,
) -> (FilterOutcome, ValidAnnouncementData);
}
Expand description
Filters valid entries in
NewPooledTransactionHashes68
and
NewPooledTransactionHashes66
in place, and
flags misbehaving peers.
Required Methods§
Sourcefn filter_valid_entries_68(
&self,
msg: PartiallyValidData<Eth68TxMetadata>,
) -> (FilterOutcome, ValidAnnouncementData)where
Self: ValidateTx68,
fn filter_valid_entries_68(
&self,
msg: PartiallyValidData<Eth68TxMetadata>,
) -> (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
.
Sourcefn filter_valid_entries_66(
&self,
msg: PartiallyValidData<Eth68TxMetadata>,
) -> (FilterOutcome, ValidAnnouncementData)
fn filter_valid_entries_66( &self, msg: PartiallyValidData<Eth68TxMetadata>, ) -> (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.