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

Namespaces

 catapult
 
 catapult::validators
 

Functions

 catapult::validators::DEFINE_STATEFUL_VALIDATOR (NewRemoteAccountAvailability, [](const auto &notification, const auto &context) { const auto &cache=context.Cache.template sub< cache::AccountStateCache >();auto remoteAccountStateIter=cache.find(notification.RemoteAccountKey);return !remoteAccountStateIter.tryGet()||state::AccountType::Remote_Unlinked==remoteAccountStateIter.get().AccountType ? ValidationResult::Success :Failure_AccountLink_Remote_Account_Ineligible;})