|
CatapultServer
v0.5.0.1 (Elephant)
|
Loads and executes a nemesis block. More...

Public Member Functions | |
| NemesisBlockLoader (cache::CatapultCacheDelta &cacheDelta, const plugins::PluginManager &pluginManager, std::unique_ptr< const observers::NotificationObserver > &&pObserver) | |
| Creates a loader around cacheDelta, pluginManager and pObserver. More... | |
| void | execute (const LocalNodeStateRef &stateRef, StateHashVerification stateHashVerification) |
| Loads the nemesis block from storage, updates state in stateRef and verifies state hash (stateHashVerification). More... | |
| void | executeAndCommit (const LocalNodeStateRef &stateRef, StateHashVerification stateHashVerification=StateHashVerification::Enabled) |
| void | execute (const model::BlockChainConfiguration &config, const model::BlockElement &nemesisBlockElement) |
Private Types | |
| enum | Verbosity { Verbosity::Off, Verbosity::On } |
Private Member Functions | |
| void | execute (const model::BlockChainConfiguration &config, const model::BlockElement &nemesisBlockElement, state::CatapultState &catapultState, StateHashVerification stateHashVerification, Verbosity verbosity) |
Private Attributes | |
| cache::CatapultCacheDelta & | m_cacheDelta |
| const plugins::PluginManager & | m_pluginManager |
| Key | m_nemesisPublicKey |
| NemesisFundingState | m_nemesisFundingState |
| std::unique_ptr< const observers::EntityObserver > | m_pObserver |
| std::unique_ptr< const model::NotificationPublisher > | m_pPublisher |
Loads and executes a nemesis block.
|
strongprivate |
| catapult::extensions::NemesisBlockLoader::NemesisBlockLoader | ( | cache::CatapultCacheDelta & | cacheDelta, |
| const plugins::PluginManager & | pluginManager, | ||
| std::unique_ptr< const observers::NotificationObserver > && | pObserver | ||
| ) |
Creates a loader around cacheDelta, pluginManager and pObserver.
| void catapult::extensions::NemesisBlockLoader::execute | ( | const LocalNodeStateRef & | stateRef, |
| StateHashVerification | stateHashVerification | ||
| ) |
Loads the nemesis block from storage, updates state in stateRef and verifies state hash (stateHashVerification).


| void catapult::extensions::NemesisBlockLoader::execute | ( | const model::BlockChainConfiguration & | config, |
| const model::BlockElement & | nemesisBlockElement | ||
| ) |
Executes the nemesis block (nemesisBlockElement), applies all changes to cache delta and checks consistency against config.

|
private |

| void catapult::extensions::NemesisBlockLoader::executeAndCommit | ( | const LocalNodeStateRef & | stateRef, |
| StateHashVerification | stateHashVerification = StateHashVerification::Enabled |
||
| ) |
Loads the nemesis block from storage, updates state in stateRef optionally verifying state hash (stateHashVerification) and commits all changes to cache.

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |