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

Namespaces

 catapult
 
 catapult::validators
 

Functions

 catapult::validators::DEFINE_STATEFUL_VALIDATOR (ProperMosaic, [](const auto &notification, const ValidatorContext &context) { auto view=ActiveMosaicView(context.Cache);auto mosaicId=notification.MosaicId;if(Notification::MosaicType::Unresolved==notification.ProvidedMosaicType) mosaicId=context.Resolvers.resolve(notification.UnresolvedMosaicId);ActiveMosaicView::FindIterator mosaicIter;return view.tryGet(mosaicId, context.Height, notification.Signer, mosaicIter);})