pub enum EntrySkip {
BadPeerId,
SelfOrPartner,
BadAddress,
TooManyAddresses,
TooManyFlags,
NetworkMismatch,
BadVia,
TooOld,
OversizePayment,
}Expand description
Why a single inbound peer entry was skipped by receiver-side validation (SPEC §3.3). Skipping is
silent — no pex_error, no strike; entry-level junk is expected from honest-but-stale peers.
Variants§
BadPeerId
peer_id is not exactly 64 lowercase hex characters.
SelfOrPartner
peer_id equals the receiver’s own or the sender’s peer_id (SPEC §5.4).
BadAddress
An address has an empty host, a port of 0, or an unrecognized kind token.
TooManyAddresses
addresses has more than PEX_MAX_ADDRESSES elements.
TooManyFlags
flags has more than PEX_MAX_FLAGS elements (or a token over PEX_MAX_FLAG_LEN chars).
NetworkMismatch
network_id differs from the link’s network.
BadVia
via is not one of the three registered provenance tokens.
TooOld
last_seen is more than PEX_MAX_ENTRY_AGE seconds in the past by the receiver’s clock.
OversizePayment
The payment claim exceeded one of its field caps (SPEC §3.4.2). Note this is a size
verdict only: an entry whose claim is merely unverifiable is kept and stays dialable — it is
simply unpayable (SPEC §3.4.3).