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

Namespaces

 catapult
 
 catapult::validators
 

Macros

#define DEFINE_ACCOUNT_RESTRICTION_MAX_VALUES_VALIDATOR(VALIDATOR_NAME, NOTIFICATION_TYPE, ACCOUNT_RESTRICTION_VALUE_TYPE)
 

Functions

 catapult::validators::DEFINE_ACCOUNT_RESTRICTION_MAX_VALUES_VALIDATOR (MaxAccountAddressRestrictionValues, model::ModifyAccountAddressRestrictionNotification, UnresolvedAddress) DEFINE_ACCOUNT_RESTRICTION_MAX_VALUES_VALIDATOR(MaxAccountMosaicRestrictionValues
 

Macro Definition Documentation

◆ DEFINE_ACCOUNT_RESTRICTION_MAX_VALUES_VALIDATOR

#define DEFINE_ACCOUNT_RESTRICTION_MAX_VALUES_VALIDATOR (   VALIDATOR_NAME,
  NOTIFICATION_TYPE,
  ACCOUNT_RESTRICTION_VALUE_TYPE 
)
Value:
DECLARE_STATEFUL_VALIDATOR(VALIDATOR_NAME, NOTIFICATION_TYPE)(uint16_t maxAccountRestrictionValues) { \
using ValidatorType = stateful::FunctionalNotificationValidatorT<NOTIFICATION_TYPE>; \
return std::make_unique<ValidatorType>(#VALIDATOR_NAME "Validator", [maxAccountRestrictionValues]( \
const auto& notification, \
const auto& context) { \
return Validate<ACCOUNT_RESTRICTION_VALUE_TYPE, NOTIFICATION_TYPE>(maxAccountRestrictionValues, notification, context); \
}); \
}

Variable Documentation

◆ NumAdds

size_t NumAdds = 0

◆ NumDeletes

size_t NumDeletes = 0
DECLARE_STATEFUL_VALIDATOR
#define DECLARE_STATEFUL_VALIDATOR(NAME, NOTIFICATION_TYPE)
Declares a stateful validator with NAME for notifications of type NOTIFICATION_TYPE.
Definition: ValidatorTypes.h:118