Changeset View
Changeset View
Standalone View
Standalone View
src/pow.h
Show All 21 Lines | uint32_t CalculateNextWorkRequired(const CBlockIndex *pindexPrev, | ||||
const Consensus::Params &); | const Consensus::Params &); | ||||
/** | /** | ||||
* Check whether a block hash satisfies the proof-of-work requirement specified | * Check whether a block hash satisfies the proof-of-work requirement specified | ||||
* by nBits | * by nBits | ||||
*/ | */ | ||||
bool CheckProofOfWork(uint256 hash, uint32_t nBits, const Consensus::Params &); | bool CheckProofOfWork(uint256 hash, uint32_t nBits, const Consensus::Params &); | ||||
/** | |||||
* Bitcoin cash's difficulty adjustment mechanism. | |||||
*/ | |||||
uint32_t GetNextCashWorkRequired(const CBlockIndex *pindexPrev, | |||||
const CBlockHeader *pblock, | |||||
const Consensus::Params ¶ms); | |||||
#endif // BITCOIN_POW_H | #endif // BITCOIN_POW_H |