Module validation

Source
Expand description

Validation of NewPooledTransactionHashes66 and NewPooledTransactionHashes68 announcements. Validation and filtering of announcements is network dependent.

Structs§

EthMessageFilter
Filter for announcements containing EIP [TxType]s.
MessageFilter
Wrapper for types that implement FilterAnnouncement. The definition of a valid announcement is network dependent. For example, different networks support different [TxType]s, and different [TxType]s have different transaction size constraints. Defaults to EthMessageFilter.

Enums§

FilterOutcome
Outcome from filtering NewPooledTransactionHashes68. Signals to caller whether to penalize the sender of the announcement or not.
ValidationOutcome
Outcomes from validating a (ty, hash, size) entry from a NewPooledTransactionHashes68. Signals to the caller how to deal with an announcement entry and the peer who sent the announcement.

Constants§

SIGNATURE_DECODED_SIZE_BYTES
The size of a decoded signature in bytes.

Traits§

FilterAnnouncement
Filters valid entries in NewPooledTransactionHashes68 and NewPooledTransactionHashes66 in place, and flags misbehaving peers.
PartiallyFilterMessage
Generic filter for announcements and responses. Checks for empty message and unique hashes/ transactions in message.
ValidateTx68
Interface for validating a (ty, size, hash) tuple from a NewPooledTransactionHashes68..