CatapultServer
v0.5.0.1 (Elephant)
|
Namespaces | |
catapult | |
catapult::validators | |
Functions | |
catapult::validators::DEFINE_STATELESS_VALIDATOR (TransferMosaics, [](const auto ¬ification) { if(1 >=notification.MosaicsCount) return ValidationResult::Success;auto pMosaics=notification.MosaicsPtr;auto lastMosaicId=pMosaics[0].MosaicId;for(auto i=1u;i< notification.MosaicsCount;++i) { auto currentMosaicId=pMosaics[i].MosaicId;if(lastMosaicId >=currentMosaicId) return Failure_Transfer_Out_Of_Order_Mosaics;lastMosaicId=currentMosaicId;} return ValidationResult::Success;}) | |