CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace cache {
class CatapultCache; }
30 class WeakCosignedTransactionInfo;
32 namespace plugins {
class PluginManager; }
35 namespace catapult {
namespace chain {
60 template<
typename TNormalizedResult>
virtual Result< CosignersValidationResult > validateCosigners(const model::WeakCosignedTransactionInfo &transactionInfo) const =0
Validates the cosigners of a partial transaction (transactionInfo).
std::unique_ptr< PtValidator > CreatePtValidator(const cache::CatapultCache &cache, const TimeSupplier &timeSupplier, const plugins::PluginManager &pluginManager)
Creates a default partial transaction validator around cache, current time supplier (timeSupplier) an...
Definition: PtValidator.cpp:98
TNormalizedResult Normalized
Normalized validation result.
Definition: PtValidator.h:66
std::unique_ptr< const stateless::NotificationValidator > m_pCosignersValidator
Definition: PtValidator.cpp:94
Wrapper around a transaction and its cosignatures.
Definition: WeakCosignedTransactionInfo.h:29
NotificationValidatorAdapter m_statelessTransactionValidator
Definition: PtValidator.cpp:92
constexpr bool IsValidationResultSuccess(ValidationResult result)
Returns a value indicating whether the validation result is a success.
Definition: ValidationResult.h:90
NotificationValidatorAdapter m_transactionValidator
Definition: PtValidator.cpp:91
ValidationResult
Enumeration of all possible validation results.
Definition: ValidationResult.h:51
Validation result is success.
A manager for registering plugins.
Definition: PluginManager.h:51
Only custom notifications are published.
Only basic notifications are published.
virtual ~PtValidator()=default
Definition: NotificationValidatorAdapter.h:31
AggregateCosignersNotificationPublisher m_aggregatePublisher
Definition: PtValidator.cpp:93
Wrapper around a strongly typed entity and its associated metadata.
Definition: WeakEntityInfo.h:33
Definition: PtValidator.h:54
Central cache holding all sub caches.
Definition: CatapultCache.h:40
validators::ValidationResult Raw
Raw validation result.
Definition: PtValidator.h:63
At least one cosigner is missing.
A validation result.
Definition: PtValidator.h:61
#define CATAPULT_LOG_LEVEL(LEVEL)
Writes a log entry to the default logger with LEVEL severity.
Definition: Logging.h:336
All cosigners are eligible and sufficient.
virtual Result< bool > validatePartial(const model::WeakEntityInfoT< model::Transaction > &transactionInfo) const =0
Validates a partial transaction (transactionInfo) excluding ineligible and missing cosigners checks.
Validation result is failure.
CosignersValidationResult
Result of a partial transaction cosigners validation.
Definition: PtValidator.h:38
supplier< Timestamp > TimeSupplier
Supplies a timestamp.
Definition: ChainFunctions.h:39
Definition: AddressExtractionExtension.cpp:28
std::unique_ptr< const stateless::NotificationValidator > CreateJointValidator(const cache::CatapultCache &cache, const TimeSupplier &timeSupplier, const plugins::PluginManager &pluginManager, const ValidationResultPredicate &isSuppressedFailure)
Definition: JointValidator.cpp:94
Definition: AddressValidator.cpp:25
constexpr utils::LogLevel MapToLogLevel(ValidationResult result)
Maps validation result to an appropriate logging level.
Definition: ValidationResult.h:100
PublicationMode
Publication modes.
Definition: NotificationPublisher.h:34
Transaction failed validation and should be rejected.
ValidationResult validate(const model::WeakEntityInfo &entityInfo) const override
Definition: NotificationValidatorAdapter.cpp:38
Cosignature is ineligible.