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

Namespaces

 catapult
 
 catapult::validators
 

Functions

 catapult::validators::DEFINE_STATEFUL_VALIDATOR (NemesisSink, [](const auto &notification, const auto &context) { auto isBlockHeightOne=context.Height==Height(1);auto isNemesisPublicKey=notification.Signer==context.Network.PublicKey;return isBlockHeightOne||!isNemesisPublicKey ? ValidationResult::Success :Failure_Core_Nemesis_Account_Signed_After_Nemesis_Block;})