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

Namespaces

 catapult
 
 catapult::validators
 

Functions

 catapult::validators::DEFINE_STATEFUL_VALIDATOR (RemoteSender, [](const auto &notification, const auto &context) { const auto &cache=context.Cache.template sub< cache::AccountStateCache >();auto accountStateIter=cache.find(notification.Signer);return accountStateIter.tryGet() &&state::IsRemote(accountStateIter.get().AccountType) ? Failure_AccountLink_Remote_Account_Signer_Not_Allowed :ValidationResult::Success;})