CatapultServer
v0.5.0.1 (Elephant)
|
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... | |
Handlers used by the block chain sync consumer.
Prototype for commit step notification.
using catapult::consumers::BlockChainSyncHandlers::DifficultyCheckerFunc = predicate<const std::vector<const model::Block*>&, const cache::CatapultCache&> |
Prototype for checking block difficulties.
using catapult::consumers::BlockChainSyncHandlers::PreStateWrittenFunc = consumer<const cache::CatapultCacheDelta&, const state::CatapultState&, Height> |
Prototype for pre state written notification.
using catapult::consumers::BlockChainSyncHandlers::StateChangeFunc = consumer<const subscribers::StateChangeInfo&> |
Prototype for state change notification.
using catapult::consumers::BlockChainSyncHandlers::TransactionsChangeFunc = consumer<const TransactionsChangeInfo&> |
Prototype for transaction change notification.
using catapult::consumers::BlockChainSyncHandlers::UndoBlockFunc = consumer<const model::BlockElement&, observers::ObserverState&, UndoBlockType> |
Prototype for undoing a block.
CommitStepFunc catapult::consumers::BlockChainSyncHandlers::CommitStep |
Called with the commit operation step.
DifficultyCheckerFunc catapult::consumers::BlockChainSyncHandlers::DifficultyChecker |
Checks all difficulties in a block chain for correctness.
PreStateWrittenFunc catapult::consumers::BlockChainSyncHandlers::PreStateWritten |
Called after state change but before state written checkpoint.
BlockChainProcessor catapult::consumers::BlockChainSyncHandlers::Processor |
Processes (validates and executes) a block chain.
StateChangeFunc catapult::consumers::BlockChainSyncHandlers::StateChange |
Called with state change info to indicate a state change.
TransactionsChangeFunc catapult::consumers::BlockChainSyncHandlers::TransactionsChange |
Called with the hashes of confirmed transactions and the infos of reverted transactions when transaction statuses change.
UndoBlockFunc catapult::consumers::BlockChainSyncHandlers::UndoBlock |
Undoes a block and updates a cache.