Expand description
Validation of NewPooledTransactionHashes66
and NewPooledTransactionHashes68
announcements. Validation and filtering of announcements is network dependent.
Structs§
- EthMessage
Filter - Filter for announcements containing EIP [
TxType
]s. - Message
Filter - 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 toEthMessageFilter
.
Enums§
- Filter
Outcome - Outcome from filtering
NewPooledTransactionHashes68
. Signals to caller whether to penalize the sender of the announcement or not. - Validation
Outcome - Outcomes from validating a
(ty, hash, size)
entry from aNewPooledTransactionHashes68
. 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§
- Filter
Announcement - Filters valid entries in
NewPooledTransactionHashes68
andNewPooledTransactionHashes66
in place, and flags misbehaving peers. - Partially
Filter Message - Generic filter for announcements and responses. Checks for empty message and unique hashes/ transactions in message.
- Validate
Tx68 - Interface for validating a
(ty, size, hash)
tuple from aNewPooledTransactionHashes68
..