CatapultServer  v0.5.0.1 (Elephant)
plugins/coresystem/src/validators/Results.h
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef CUSTOM_RESULT_DEFINITION
24 
25 namespace catapult { namespace validators {
26 
27 #endif
28 #define DEFINE_CORE_RESULT(DESCRIPTION, CODE) DEFINE_VALIDATION_RESULT(Failure, Core, DESCRIPTION, CODE, None)
30 
32  DEFINE_CORE_RESULT(Past_Deadline, 1);
33 
35  DEFINE_CORE_RESULT(Future_Deadline, 2);
36 
38  DEFINE_CORE_RESULT(Insufficient_Balance, 3);
39 
41  DEFINE_CORE_RESULT(Too_Many_Transactions, 4);
42 
44  DEFINE_CORE_RESULT(Nemesis_Account_Signed_After_Nemesis_Block, 5);
45 
47  DEFINE_CORE_RESULT(Wrong_Network, 6);
48 
50  DEFINE_CORE_RESULT(Invalid_Address, 7);
51 
53  DEFINE_CORE_RESULT(Invalid_Version, 8);
54 
56  DEFINE_CORE_RESULT(Invalid_Transaction_Fee, 9);
57 
59  DEFINE_CORE_RESULT(Block_Harvester_Ineligible, 10);
60 
61 #ifndef CUSTOM_RESULT_DEFINITION
62 }}
63 #endif
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
catapult::timesync::filters::CreateResponseDelayDetectionFilter
SynchronizationFilter CreateResponseDelayDetectionFilter()
Creates a filter that filters out samples that indicate an unexpected delay in the response.
Definition: ResponseDelayDetectionFilter.cpp:27
catapult::model::ImportanceHeight
utils::BaseValue< Height::ValueType, ImportanceHeight_tag > ImportanceHeight
Represents a height at which importance is calculated.
Definition: ImportanceHeight.h:29
Parser.debug
def debug(*args)
Definition: Parser.py:46
ImportanceCalculator.h
catapult::importance::CreateRestoreImportanceCalculator
std::unique_ptr< ImportanceCalculator > CreateRestoreImportanceCalculator()
Creates a restore importance calculator.
Definition: RestoreImportanceCalculator.cpp:47
catapult::timesync::filters::Tolerated_Duration_Maximum
constexpr int64_t Tolerated_Duration_Maximum
Maximum time in ms that a response to a time sync request may take.
Definition: filter_constants.h:43
AccountStateCache.h
ValidationResult.h
filter_constants.h
catapult::timesync::filters::SynchronizationFilter
predicate< const TimeSynchronizationSample &, NodeAge > SynchronizationFilter
Signature of a synchronization filter.
Definition: SynchronizationFilters.h:29
catapult
Definition: AddressExtractionExtension.cpp:28
SynchronizationFilters.h
catapult::validators::DEFINE_CORE_RESULT
DEFINE_CORE_RESULT(Past_Deadline, 1)
Validation failed because the deadline passed.
ContainerHelpers.h