reth_eth_wire::broadcast

Trait DedupPayload

pub trait DedupPayload {
    type Value;

    // Required methods
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn dedup(self) -> PartiallyValidData<Self::Value>;
}
Expand description

Validation pass that checks for unique transaction hashes.

Required Associated Types§

type Value

Value type in PartiallyValidData map.

Required Methods§

fn is_empty(&self) -> bool

The payload contains no entries.

fn len(&self) -> usize

Returns the number of entries.

fn dedup(self) -> PartiallyValidData<Self::Value>

Consumes self, returning an iterator over hashes in payload.

Implementors§