|
CatapultServer
v0.5.0.1 (Elephant)
|
Serializes local node state. More...

Public Member Functions | |
| LocalNodeStateSerializer (const config::CatapultDirectory &directory) | |
| Creates a serializer around specified directory. More... | |
| void | save (const cache::CatapultCache &cache, const state::CatapultState &state, const model::ChainScore &score) const |
| Saves state composed of cache, state and score. More... | |
| void | save (const cache::CatapultCacheDelta &cacheDelta, const std::vector< std::unique_ptr< const cache::CacheStorage >> &cacheStorages, const state::CatapultState &state, const model::ChainScore &score, Height height) const |
| Saves state composed of cacheDelta, state, score and height using cacheStorages. More... | |
| void | moveTo (const config::CatapultDirectory &destinationDirectory) |
| Moves serialized state to destinationDirectory. More... | |
Private Attributes | |
| config::CatapultDirectory | m_directory |
Serializes local node state.
|
explicit |
Creates a serializer around specified directory.
| void catapult::extensions::LocalNodeStateSerializer::moveTo | ( | const config::CatapultDirectory & | destinationDirectory | ) |
Moves serialized state to destinationDirectory.

| void catapult::extensions::LocalNodeStateSerializer::save | ( | const cache::CatapultCache & | cache, |
| const state::CatapultState & | state, | ||
| const model::ChainScore & | score | ||
| ) | const |
Saves state composed of cache, state and score.

| void catapult::extensions::LocalNodeStateSerializer::save | ( | const cache::CatapultCacheDelta & | cacheDelta, |
| const std::vector< std::unique_ptr< const cache::CacheStorage >> & | cacheStorages, | ||
| const state::CatapultState & | state, | ||
| const model::ChainScore & | score, | ||
| Height | height | ||
| ) | const |
Saves state composed of cacheDelta, state, score and height using cacheStorages.
|
private |