CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace cache {
class ReadOnlyCatapultCache; }
29 namespace chain {
struct ObserverState; }
32 namespace catapult {
namespace consumers {
Enabled, generate and validate receipts.
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
def debug(*args)
Definition: Parser.py:46
constexpr bool IsValidationResultSuccess(ValidationResult result)
Returns a value indicating whether the validation result is a success.
Definition: ValidationResult.h:90
A tuple composed of a block, a hash and a generation hash.
Definition: BlockChainProcessor.h:35
std::function< bool(TArgs...)> predicate
A predicate function.
Definition: functions.h:31
def warning(*args)
Definition: colorPrint.py:10
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
ValidationResult
Enumeration of all possible validation results.
Definition: ValidationResult.h:51
std::function< validators::ValidationResult(Height, Timestamp, const model::WeakEntityInfos &, observers::ObserverState &)> BatchEntityProcessor
Definition: BatchEntityProcessor.h:32
const GenerationHash * m_pGenerationHash
Definition: BlockChainProcessor.h:54
GenerationHash CalculateGenerationHash(const GenerationHash &previousGenerationHash, const Key &publicKey)
Definition: BlockUtils.cpp:50
void ExtractEntityInfos(const BlockElement &element, WeakEntityInfos &entityInfos)
Extracts all entity infos from element into entityInfos.
Definition: Elements.cpp:88
void ExtractEntityInfos(const TransactionElements &elements, model::WeakEntityInfos &entityInfos, std::vector< size_t > &entityInfoElementIndexes)
Definition: InputUtils.cpp:45
constexpr WeakEntityInfoT()
Creates an entity info.
Definition: WeakEntityInfo.h:36
ReceiptValidationMode
Possible receipt validation modes.
Definition: BlockChainProcessor.h:71
BlockHitPredicateFactory m_blockHitPredicateFactory
Definition: BlockChainProcessor.cpp:184
Validation result is neither success nor failure.
Hash256 CalculateMerkleHash(const BlockStatement &statement)
Calculates the merkle hash for statement.
Definition: BlockStatement.cpp:83
BlockChainProcessor CreateBlockChainProcessor(const BlockHitPredicateFactory &blockHitPredicateFactory, const chain::BatchEntityProcessor &batchEntityProcessor, ReceiptValidationMode receiptValidationMode)
Definition: BlockChainProcessor.cpp:190
Wrapper around a strongly typed entity and its associated metadata.
Definition: WeakEntityInfo.h:33
Block independent mutable state passed to all observers.
Definition: ObserverContext.h:54
constexpr WeakBlockInfo()
Creates a block info.
Definition: BlockChainProcessor.h:38
std::vector< model::BlockElement > BlockElements
A container of BlockElement.
Definition: DisruptorTypes.h:132
Disabled, skip validation of receipts.
Processing element for a block composed of a block and metadata.
Definition: Elements.h:55
constexpr const GenerationHash & generationHash() const
Gets the generation hash.
Definition: BlockChainProcessor.h:49
bool IsChainLink(const model::Block &parent, const Hash256 &parentHash, const model::Block &child)
Determines if parent with hash parentHash and child form a chain link.
Definition: ChainUtils.cpp:30
std::function< validators::ValidationResult(const WeakBlockInfo &, disruptor::BlockElements &, observers::ObserverState &)> BlockChainProcessor
Definition: BlockChainProcessor.h:62
std::function< BlockHitPredicate(const cache::ReadOnlyCatapultCache &)> BlockHitPredicateFactory
A factory for creating a predicate for determining whether or not two blocks form a hit.
Definition: BlockChainProcessor.h:68
Definition: AddressExtractionExtension.cpp:28
utils::ByteArray< Hash256_Size, GenerationHash_tag > GenerationHash
Definition: src/catapult/types.h:53
Definition: AddressValidator.cpp:25
chain::BatchEntityProcessor m_batchEntityProcessor
Definition: BlockChainProcessor.cpp:185
A read-only overlay on top of a catapult cache.
Definition: ReadOnlyCatapultCache.h:27
std::vector< WeakEntityInfo > WeakEntityInfos
A container of weak entity infos.
Definition: WeakEntityInfo.h:144
predicate< const model::Block &, const model::Block &, const GenerationHash & > BlockHitPredicate
A predicate for determining whether or not two blocks form a hit.
Definition: BlockChainProcessor.h:65
ReceiptValidationMode m_receiptValidationMode
Definition: BlockChainProcessor.cpp:186
constexpr WeakBlockInfo(const model::BlockElement &blockElement)
Creates a block info around blockElement.
Definition: BlockChainProcessor.h:42