CatapultServer  v0.5.0.1 (Elephant)
UniqueTransactionHashValidator.cpp File Reference
Include dependency graph for UniqueTransactionHashValidator.cpp:

Namespaces

 catapult
 
 catapult::validators
 

Functions

 catapult::validators::DEFINE_STATEFUL_VALIDATOR (UniqueTransactionHash, [](const auto &notification, const ValidatorContext &context) { const auto &hashCache=context.Cache.sub< cache::HashCache >();return hashCache.contains(state::TimestampedHash(notification.Deadline, notification.TransactionHash)) ? Failure_Hash_Exists :ValidationResult::Success;})