pub fn gossip_attester_slashing(
        message_id: MessageId,
        peer_id: PeerId,
        attester_slashing: Box<AttesterSlashing<T::EthSpec>>,
    ) -> Self {
        Self {
            drop_during_sync: false,
            work: Work::GossipAttesterSlashing {
                message_id,
                peer_id,
                attester_slashing,
            },
        }
    }
/// Create a new `Work` event for some attester slashing.
Create a new `Work` event for some attester slashing.
Create a new ` Work ` event for some attester slashing .
pub fn gossip_attester_slashing(
        message_id: MessageId,
        peer_id: PeerId,
        attester_slashing: Box<AttesterSlashing<T::EthSpec>>,
    ) -> Self {
        Self {
            drop_during_sync: false,
            work: Work::GossipAttesterSlashing {
                message_id,
                peer_id,
                attester_slashing,
            },
        }
    }
pub fn gossip_attester_slashing ( message_id : MessageId , peer_id : PeerId , attester_slashing : Box < AttesterSlashing < T :: EthSpec > > , ) -> Self { Self { drop_during_sync : false , work : Work :: GossipAttesterSlashing { message_id , peer_id , attester_slashing , } , } }
Create a new `Work` event for some attester slashing.
Create a new ` Work ` event for some attester slashing .
message_id
MessageId
peer_id
PeerId
attester_slashing
Box<AttesterSlashing<T::EthSpec>>