CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace cache {
class CatapultCache; }
27 class BlockChangeSubscriber;
28 class BlockStorageCache;
31 struct BlockChainConfiguration;
34 namespace plugins {
class PluginManager; }
35 namespace subscribers {
class StateChangeSubscriber; }
38 namespace catapult {
namespace local {
const io::BlockStorageCache & m_storage
Definition: NemesisBlockNotifier.h:63
void raise(io::BlockChangeSubscriber &subscriber)
Raises and forwards block change notifications to subscriber.
Definition: NemesisBlockNotifier.cpp:57
Block chain configuration settings.
Definition: BlockChainConfiguration.h:33
virtual void notifyBlock(const model::BlockElement &blockElement)=0
Indicates blockElement was saved.
Loads and executes a nemesis block.
Definition: NemesisBlockLoader.h:50
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
State change subscriber.
Definition: StateChangeSubscriber.h:31
const io::BlockStorageCache & m_storage
Definition: LocalChainApi.cpp:57
A manager for registering plugins.
Definition: PluginManager.h:51
Block change subscriber.
Definition: BlockChangeSubscriber.h:27
const plugins::PluginManager & m_pluginManager
Definition: NemesisBlockNotifier.h:64
Provides common view of aggregate cache changes.
Definition: CacheChanges.h:111
BlockStorageView view() const
Gets a read only view of the storage.
Definition: BlockStorageCache.cpp:176
const model::BlockChainConfiguration & m_config
Definition: NemesisBlockNotifier.h:61
Raises nemesis block notifications.
Definition: NemesisBlockNotifier.h:41
Definition: BlockStorageCache.h:97
virtual void notifyScoreChange(const model::ChainScore &chainScore)=0
Indicates chain score was changed to chainScore.
Central cache holding all sub caches.
Definition: CatapultCache.h:40
plugins::PluginManager & m_pluginManager
Definition: Broker.cpp:123
uint64_t size
Definition: MemoryCounters.cpp:65
HarvestingConfiguration m_config
Definition: HarvestingService.cpp:126
std::function< void()> action
An action function.
Definition: functions.h:27
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
model::ChainScore ChainScore
Definition: tools/health/main.cpp:43
Definition: AddressExtractionExtension.cpp:28
const cache::CatapultCache & m_cache
Definition: NemesisBlockNotifier.h:62
NemesisBlockNotifier(const model::BlockChainConfiguration &config, const cache::CatapultCache &cache, const io::BlockStorageCache &storage, const plugins::PluginManager &pluginManager)
Creates a notifier around config, cache, storage and pluginManager.
Definition: NemesisBlockNotifier.cpp:46
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
const cache::CatapultCache & m_cache
Definition: JointValidator.cpp:84
virtual void notifyStateChange(const StateChangeInfo &stateChangeInfo)=0
Indicates state was changed with change information in stateChangeInfo.
void execute(const LocalNodeStateRef &stateRef, StateHashVerification stateHashVerification)
Loads the nemesis block from storage, updates state in stateRef and verifies state hash (stateHashVer...
Definition: NemesisBlockLoader.cpp:152