Function relay_event_normalization::validate_transaction
source · pub fn validate_transaction(
event: &mut Annotated<Event>,
config: &TransactionValidationConfig
) -> ProcessingResult
Expand description
Validates a transaction.
Validation consists of performing multiple checks on the payload, based on the given configuration. Noop for non-transaction events.
The returned ProcessingResult
indicates whether the passed transaction
is invalid and thus should be dropped.
Note: this function does not validate a transaction’s timestamp values are
up-to-date, validate_event_timestamps
should be used for that.