CatapultServer  v0.5.0.1 (Elephant)
UndoBlock.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "BlockChainSyncHandlers.h"
23 
24 namespace catapult { namespace chain { struct BlockExecutionContext; } }
25 
26 namespace catapult { namespace consumers {
27 
29  void UndoBlock(
30  const model::BlockElement& blockElement,
31  const chain::BlockExecutionContext& executionContext,
32  UndoBlockType undoBlockType);
33 }}
catapult::observers::ObserverState::Cache
cache::CatapultCacheDelta & Cache
Catapult cache.
Definition: ObserverContext.h:64
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
Parser.debug
def debug(*args)
Definition: Parser.py:46
catapult::chain::BlockExecutionContext::State
observers::ObserverState & State
State to update during observation.
Definition: BlockExecutor.h:51
catapult::model::BlockElement::Block
const model::Block & Block
Block entity.
Definition: Elements.h:63
catapult::chain::BlockExecutionContext
Block execution context.
Definition: BlockExecutor.h:31
catapult::consumers::UndoBlockType
UndoBlockType
Type of block passed to undo block handler.
Definition: BlockChainSyncHandlers.h:53
catapult::model::BlockElement::SubCacheMerkleRoots
std::vector< Hash256 > SubCacheMerkleRoots
Merkle roots for all sub caches at the current block.
Definition: Elements.h:72
BlockExecutor.h
catapult::model::BlockHeader::Height
catapult::Height Height
Height of a block.
Definition: Block.h:41
catapult::consumers::UndoBlock
void UndoBlock(const model::BlockElement &blockElement, const chain::BlockExecutionContext &executionContext, UndoBlockType undoBlockType)
Undoes blockElement using the specified execution context (executionContext) for undo of specified ty...
Definition: UndoBlock.cpp:26
catapult::consumers::UndoBlockType::Rollback
Rolled back block.
catapult::model::BlockElement
Processing element for a block composed of a block and metadata.
Definition: Elements.h:55
catapult::chain::RollbackBlock
void RollbackBlock(const model::BlockElement &blockElement, const BlockExecutionContext &executionContext)
Rollbacks blockElement using the specified execution context (executionContext).
Definition: BlockExecutor.cpp:53
UndoBlock.h
catapult
Definition: AddressExtractionExtension.cpp:28
BlockChainSyncHandlers.h
catapult::consumers::UndoBlockType::Common
New common block.
catapult::cache::CatapultCacheDelta::setSubCacheMerkleRoots
void setSubCacheMerkleRoots(const std::vector< Hash256 > &subCacheMerkleRoots)
Sets the merkle roots for all sub caches (subCacheMerkleRoots).
Definition: CatapultCache.cpp:134