CatapultServer  v0.5.0.1 (Elephant)
BlockScorer.cpp File Reference
Include dependency graph for BlockScorer.cpp:

Namespaces

 catapult
 
 catapult::chain
 

Macros

#define BSWAP(VAL)   __builtin_bswap32(VAL)
 

Functions

uint64_t catapult::chain::CalculateHit (const GenerationHash &generationHash)
 Calculates the hit for a generationHash. More...
 
uint64_t catapult::chain::CalculateScore (const model::Block &parentBlock, const model::Block &currentBlock)
 Calculates the score of currentBlock with parent parentBlock. More...
 
BlockTarget catapult::chain::CalculateTarget (const utils::TimeSpan &timeSpan, Difficulty difficulty, Importance signerImportance, const model::BlockChainConfiguration &config)
 
BlockTarget catapult::chain::CalculateTarget (const model::Block &parentBlock, const model::Block &currentBlock, Importance signerImportance, const model::BlockChainConfiguration &config)
 

Macro Definition Documentation

◆ BSWAP

#define BSWAP (   VAL)    __builtin_bswap32(VAL)

Variable Documentation

◆ NumLeadingZeros

uint32_t NumLeadingZeros

◆ Value

uint32_t Value