| catapult::validators::DEFINE_STATEFUL_VALIDATOR (Transaction, [](const auto ¬ification, const ValidatorContext &context) { AccountRestrictionView view(context.Cache);if(!view.initialize(model::PublicKeyToAddress(notification.Signer, context.Network.Identifier))) return ValidationResult::Success;auto isTransferAllowed=view.isAllowed(model::AccountRestrictionType::TransactionType, notification.TransactionType);return isTransferAllowed ? ValidationResult::Success :Failure_RestrictionAccount_Transaction_Type_Not_Allowed;}) |