Trait AnnouncementFilteringPolicy
pub trait AnnouncementFilteringPolicy:
Send
+ Sync
+ Unpin
+ 'static {
// Required method
fn decide_on_announcement(
&self,
ty: u8,
hash: &FixedBytes<32>,
size: usize,
) -> AnnouncementAcceptance;
}
Expand description
A policy that defines how to handle incoming transaction announcements, particularly concerning transaction types and other announcement metadata.
Required Methods§
fn decide_on_announcement(
&self,
ty: u8,
hash: &FixedBytes<32>,
size: usize,
) -> AnnouncementAcceptance
fn decide_on_announcement( &self, ty: u8, hash: &FixedBytes<32>, size: usize, ) -> AnnouncementAcceptance
Decides how to handle a transaction announcement based on its type, hash, and size.