Trait reth_network_p2p::error::EthResponseValidator

source ·
pub trait EthResponseValidator {
    // Required methods
    fn is_likely_bad_headers_response(&self, request: &HeadersRequest) -> bool;
    fn reputation_change_err(&self) -> Option<ReputationChangeKind>;
}
Expand description

Helper trait used to validate responses.

Required Methods§

source

fn is_likely_bad_headers_response(&self, request: &HeadersRequest) -> bool

Determine whether the response matches what we requested in HeadersRequest

source

fn reputation_change_err(&self) -> Option<ReputationChangeKind>

Return the response reputation impact if any

Implementors§