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

Namespaces

 catapult
 
 catapult::validators
 

Functions

 catapult::validators::DEFINE_STATEFUL_VALIDATOR (MultisigPermittedOperation, [](const auto &notification, const ValidatorContext &context) { const auto &multisigCache=context.Cache.sub< cache::MultisigCache >();if(!multisigCache.contains(notification.Signer)) return ValidationResult::Success;auto multisigIter=multisigCache.find(notification.Signer);return multisigIter.get().cosignatories().empty() ? ValidationResult::Success :Failure_Multisig_Operation_Not_Permitted_By_Account;})