CatapultServer  v0.5.0.1 (Elephant)
ConsumerResults.h
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef CUSTOM_RESULT_DEFINITION
24 
25 namespace catapult { namespace consumers {
26 
27 #endif
28 #define DEFINE_CONSUMER_RESULT(DESCRIPTION, CODE) DEFINE_VALIDATION_RESULT(Failure, Consumer, DESCRIPTION, CODE, None)
30 
32 #define DEFINE_NEUTRAL_CONSUMER_RESULT(DESCRIPTION, CODE) DEFINE_VALIDATION_RESULT(Neutral, Consumer, DESCRIPTION, CODE, Verbose)
33 
35  DEFINE_CONSUMER_RESULT(Empty_Input, 1);
36 
38  DEFINE_CONSUMER_RESULT(Block_Transactions_Hash_Mismatch, 2);
39 
41  DEFINE_NEUTRAL_CONSUMER_RESULT(Hash_In_Recency_Cache, 3);
42 
44  DEFINE_CONSUMER_RESULT(Remote_Chain_Too_Many_Blocks, 4);
45 
47  DEFINE_CONSUMER_RESULT(Remote_Chain_Improper_Link, 5);
48 
50  DEFINE_CONSUMER_RESULT(Remote_Chain_Duplicate_Transactions, 6);
51 
53  DEFINE_CONSUMER_RESULT(Remote_Chain_Unlinked, 7);
54 
56  DEFINE_CONSUMER_RESULT(Remote_Chain_Mismatched_Difficulties, 8);
57 
59  DEFINE_CONSUMER_RESULT(Remote_Chain_Score_Not_Better, 9);
60 
62  DEFINE_CONSUMER_RESULT(Remote_Chain_Too_Far_Behind, 10);
63 
65  DEFINE_CONSUMER_RESULT(Remote_Chain_Too_Far_In_Future, 11);
66 
67 #ifndef CUSTOM_RESULT_DEFINITION
68 }}
69 #endif
ValidationResult.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::consumers::DEFINE_NEUTRAL_CONSUMER_RESULT
DEFINE_NEUTRAL_CONSUMER_RESULT(Hash_In_Recency_Cache, 3)
Validation failed because an entity hash is present in the recency cache.
catapult::consumers::DEFINE_CONSUMER_RESULT
DEFINE_CONSUMER_RESULT(Empty_Input, 1)
Validation failed because the consumer input is empty.