CatapultServer  v0.5.0.1 (Elephant)
AddressExtractionBlockChangeSubscriber.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include <memory>
24 
25 namespace catapult { namespace addressextraction { class AddressExtractor; } }
26 
27 namespace catapult { namespace addressextraction {
28 
30  std::unique_ptr<io::BlockChangeSubscriber> CreateAddressExtractionBlockChangeSubscriber(const AddressExtractor& extractor);
31 }}
catapult::validators::DEFINE_STATEFUL_VALIDATOR
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto &notification, const auto &context) { cache::ImportanceView view(context.Cache.template sub< cache::AccountStateCache >());return view.canHarvest(notification.Signer, context.Height) ? ValidationResult::Success :Failure_Core_Block_Harvester_Ineligible;})
AddressExtractionBlockChangeSubscriber.h
ValidatorContext.h
catapult::Height
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
catapult::validators::Notification
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
BlockChangeSubscriber.h
catapult::addressextraction::AddressExtractor
Utility class for extracting addresses.
Definition: AddressExtractor.h:35
catapult::addressextraction::CreateAddressExtractionBlockChangeSubscriber
std::unique_ptr< io::BlockChangeSubscriber > CreateAddressExtractionBlockChangeSubscriber(const AddressExtractor &extractor)
Creates an address extraction block change subscriber around extractor.
Definition: AddressExtractionBlockChangeSubscriber.cpp:46
Validators.h
catapult::model::AliasedAddressNotification
AliasedDataNotification< Address, Namespace_Aliased_Address_Notification > AliasedAddressNotification
Notification of an aliased address.
Definition: AliasNotifications.h:119
AccountStateCache.h
AddressExtractor.h
catapult::validators::ValidationResult::Success
Validation succeeded.
m_extractor
const AddressExtractor & m_extractor
Definition: AddressExtractionBlockChangeSubscriber.cpp:42
catapult
Definition: AddressExtractionExtension.cpp:28