CatapultServer  v0.5.0.1 (Elephant)
HarvestingService.h
Go to the documentation of this file.
1 
21 #pragma once
24 
25 namespace catapult { namespace harvesting {
26 
29  DECLARE_SERVICE_REGISTRAR(Harvesting)(const HarvestingConfiguration& config);
30 }}
catapult::extensions::CreateExecutionConfiguration
chain::ExecutionConfiguration CreateExecutionConfiguration(const plugins::PluginManager &pluginManager)
Creates an execution configuration based on pluginManager.
Definition: ExecutionConfigurationFactory.cpp:27
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
ServiceRegistrar.h
catapult::extensions::ExtensionManager::addServiceRegistrar
void addServiceRegistrar(std::unique_ptr< ServiceRegistrar > &&pServiceRegistrar)
Adds a service registrar (pServiceRegistrar).
Definition: ExtensionManager.cpp:42
catapult::Height
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
Local
ionet::Node Local
Definition: tools/network/main.cpp:42
UnlockedAccounts.h
catapult::harvesting::HarvestingConfiguration
Harvesting configuration settings.
Definition: HarvestingConfiguration.h:30
ServiceLocator.h
catapult::extensions::ProcessBootstrapper::resourcesPath
const std::string & resourcesPath() const
Gets the resources path.
Definition: ProcessBootstrapper.cpp:51
ExecutionConfigurationFactory.h
catapult::extensions::ServiceRegistrarPhase::Post_Range_Consumers
Requires basic range consumers (and factories) to be registered.
HarvestingConfiguration.h
catapult::thread::CreateNamedTask
Task CreateNamedTask(const std::string &name, const TaskCallback &callback)
Creates an unscheduled task with name and callback.
Definition: Task.cpp:52
PLUGIN_API
#define PLUGIN_API
Definition: plugins.h:30
ValidateHarvestingConfiguration.h
MemoryUtCache.h
catapult::thread::TaskResult::Continue
Task should repeat.
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
catapult::crypto::ParseKey
Key ParseKey(const std::string &keyString)
Parses a key from a string (keyString) and returns the result.
Definition: KeyUtils.cpp:35
m_config
HarvestingConfiguration m_config
Definition: HarvestingService.cpp:126
catapult::extensions::ProcessBootstrapper::extensionManager
ExtensionManager & extensionManager()
Gets the extension manager.
Definition: ProcessBootstrapper.cpp:67
KeyUtils.h
catapult::thread::make_ready_future
future< T > make_ready_future(T &&value)
Produces a future that is ready immediately and holds the given value.
Definition: Future.h:126
ScheduledHarvesterTask.h
HarvestingUtFacadeFactory.h
PluginManager.h
catapult::harvesting::HarvestingConfiguration::LoadFromPath
static HarvestingConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath)
Loads a harvesting configuration from resourcesPath.
Definition: HarvestingConfiguration.cpp:52
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::extensions::ProcessBootstrapper
Process bootstrapper.
Definition: ProcessBootstrapper.h:42
HarvestingService.h
catapult::crypto::KeyPair::FromString
static auto FromString(const std::string &privateKey)
Creates a key pair from privateKey.
Definition: KeyPair.h:46
DECLARE_SERVICE_REGISTRAR
#define DECLARE_SERVICE_REGISTRAR(NAME)
Declares a service registrar entry point with NAME.
Definition: ServiceRegistrar.h:61
RegisterExtension
PLUGIN_API void RegisterExtension(catapult::extensions::ProcessBootstrapper &bootstrapper)
Entry point for registering a dynamic extension module with bootstrapper.
Definition: HarvestingExtension.cpp:39
catapult::harvesting::ValidateHarvestingConfiguration
void ValidateHarvestingConfiguration(const HarvestingConfiguration &config)
Validates config and throws an exception if it is invalid.
Definition: ValidateHarvestingConfiguration.cpp:35
ImportanceView.h
BlockStorageCache.h
HarvesterBlockGenerator.h
ProcessBootstrapper.h
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
ServiceState.h
catapult::harvesting::Harvesting
DECLARE_SERVICE_REGISTRAR() Harvesting(const HarvestingConfiguration &config)
Definition: HarvestingService.cpp:130
catapult::harvesting::CreateHarvesterBlockGenerator
BlockGenerator CreateHarvesterBlockGenerator(model::TransactionSelectionStrategy strategy, const HarvestingUtFacadeFactory &utFacadeFactory, const cache::MemoryUtCache &utCache)
Creates a default block generator around utFacadeFactory and utCache for specified transaction strate...
Definition: HarvesterBlockGenerator.cpp:43
ConfigurationUtils.h