CatapultServer  v0.5.0.1 (Elephant)
catapult::consumers::BlockChainSyncHandlers Struct Reference

Handlers used by the block chain sync consumer. More...

Public Types

using DifficultyCheckerFunc = predicate< const std::vector< const model::Block * > &, const cache::CatapultCache & >
 Prototype for checking block difficulties. More...
 
using UndoBlockFunc = consumer< const model::BlockElement &, observers::ObserverState &, UndoBlockType >
 
using StateChangeFunc = consumer< const subscribers::StateChangeInfo & >
 Prototype for state change notification. More...
 
using PreStateWrittenFunc = consumer< const cache::CatapultCacheDelta &, const state::CatapultState &, Height >
 Prototype for pre state written notification. More...
 
using TransactionsChangeFunc = consumer< const TransactionsChangeInfo & >
 Prototype for transaction change notification. More...
 
using CommitStepFunc = consumer< CommitOperationStep >
 Prototype for commit step notification. More...
 

Public Attributes

DifficultyCheckerFunc DifficultyChecker
 Checks all difficulties in a block chain for correctness. More...
 
BlockChainProcessor Processor
 Processes (validates and executes) a block chain. More...
 
UndoBlockFunc UndoBlock
 Undoes a block and updates a cache. More...
 
StateChangeFunc StateChange
 Called with state change info to indicate a state change. More...
 
PreStateWrittenFunc PreStateWritten
 Called after state change but before state written checkpoint. More...
 
TransactionsChangeFunc TransactionsChange
 Called with the hashes of confirmed transactions and the infos of reverted transactions when transaction statuses change. More...
 
CommitStepFunc CommitStep
 Called with the commit operation step. More...
 

Detailed Description

Handlers used by the block chain sync consumer.

Member Typedef Documentation

◆ CommitStepFunc

◆ DifficultyCheckerFunc

Prototype for checking block difficulties.

◆ PreStateWrittenFunc

◆ StateChangeFunc

◆ TransactionsChangeFunc

Prototype for transaction change notification.

◆ UndoBlockFunc

Prototype for undoing a block.

Note
This is called with all rolled back blocks and the (new) common block.

Member Data Documentation

◆ CommitStep

CommitStepFunc catapult::consumers::BlockChainSyncHandlers::CommitStep

Called with the commit operation step.

◆ DifficultyChecker

DifficultyCheckerFunc catapult::consumers::BlockChainSyncHandlers::DifficultyChecker

Checks all difficulties in a block chain for correctness.

◆ PreStateWritten

PreStateWrittenFunc catapult::consumers::BlockChainSyncHandlers::PreStateWritten

Called after state change but before state written checkpoint.

◆ Processor

BlockChainProcessor catapult::consumers::BlockChainSyncHandlers::Processor

Processes (validates and executes) a block chain.

◆ StateChange

StateChangeFunc catapult::consumers::BlockChainSyncHandlers::StateChange

Called with state change info to indicate a state change.

◆ TransactionsChange

TransactionsChangeFunc catapult::consumers::BlockChainSyncHandlers::TransactionsChange

Called with the hashes of confirmed transactions and the infos of reverted transactions when transaction statuses change.

◆ UndoBlock

UndoBlockFunc catapult::consumers::BlockChainSyncHandlers::UndoBlock

Undoes a block and updates a cache.


The documentation for this struct was generated from the following file: