CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
29 class CatapultCacheDelta;
30 struct SupplementalData;
32 namespace config {
struct NodeConfiguration; }
33 namespace extensions {
struct LocalNodeStateRef; }
35 namespace plugins {
class PluginManager; }
36 namespace state {
struct CatapultState; }
39 namespace catapult {
namespace extensions {
72 const std::vector<std::unique_ptr<const cache::CacheStorage>>& cacheStorages,
Height Storage
Storage height.
Definition: LocalNodeStateFileStorage.h:47
config::CatapultDirectory m_directory
Definition: LocalNodeStateFileStorage.h:81
Catapult data directory.
Definition: CatapultDataDirectory.h:61
void save(const cache::CatapultCache &cache, const state::CatapultState &state, const model::ChainScore &score) const
Saves state composed of cache, state and score.
Definition: LocalNodeStateFileStorage.cpp:153
Delta on top of a catapult cache.
Definition: CatapultCacheDelta.h:31
A reference to a local node's basic state.
Definition: LocalNodeStateRef.h:34
Node configuration settings.
Definition: NodeConfiguration.h:33
A manager for registering plugins.
Definition: PluginManager.h:51
void SaveStateToDirectoryWithCheckpointing(const config::CatapultDataDirectory &dataDirectory, const config::NodeConfiguration &nodeConfig, const cache::CatapultCache &cache, const state::CatapultState &state, const model::ChainScore &score)
Serializes state composed of cache, state and score with checkpointing to dataDirectory given nodeCon...
Definition: LocalNodeStateFileStorage.cpp:192
Definition: ChainScore.h:30
Information about state heights.
Definition: LocalNodeStateFileStorage.h:42
Catapult directory.
Definition: CatapultDataDirectory.h:30
StateHeights LoadStateFromDirectory(const config::CatapultDirectory &directory, const LocalNodeStateRef &stateRef, const plugins::PluginManager &pluginManager)
Loads catapult state into stateRef from directory given pluginManager.
Definition: LocalNodeStateFileStorage.cpp:96
Central cache holding all sub caches.
Definition: CatapultCache.h:40
Stateful catapult information.
Definition: CatapultState.h:27
Height Cache
Cache height.
Definition: LocalNodeStateFileStorage.h:44
bool HasSerializedState(const config::CatapultDirectory &directory)
Returns true if serialized state is present in directory.
Definition: LocalNodeStateFileStorage.cpp:55
LocalNodeStateSerializer(const config::CatapultDirectory &directory)
Creates a serializer around specified directory.
Definition: LocalNodeStateFileStorage.cpp:150
model::ChainScore ChainScore
Definition: tools/health/main.cpp:43
void moveTo(const config::CatapultDirectory &destinationDirectory)
Moves serialized state to destinationDirectory.
Definition: LocalNodeStateFileStorage.cpp:176
Definition: AddressExtractionExtension.cpp:28
Serializes local node state.
Definition: LocalNodeStateFileStorage.h:60