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§
sourcefn is_likely_bad_headers_response(&self, request: &HeadersRequest) -> bool
fn is_likely_bad_headers_response(&self, request: &HeadersRequest) -> bool
Determine whether the response matches what we requested in HeadersRequest
sourcefn reputation_change_err(&self) -> Option<ReputationChangeKind>
fn reputation_change_err(&self) -> Option<ReputationChangeKind>
Return the response reputation impact if any