#include <consensus/params.h>
#include <arith_uint256.h>
#include <stdint.h>
Go to the source code of this file.
|
unsigned int | GetNextWorkRequired (const CBlockIndex *pindexLast, const CBlockHeader *pblock, const Consensus::Params &) |
|
unsigned int | CalculateNextWorkRequired (arith_uint256 bnAvg, int64_t nLastBlockTime, int64_t nFirstBlockTime, const Consensus::Params ¶ms) |
|
unsigned int | LwmaGetNextWorkRequired (const CBlockIndex *pindexLast, const CBlockHeader *pblock, const Consensus::Params &) |
| Zawy's LWMA - next generation algorithm. More...
|
|
unsigned int | LwmaCalculateNextWorkRequired (const CBlockIndex *pindexLast, const Consensus::Params ¶ms) |
|
unsigned int | DigishieldGetNextWorkRequired (const CBlockIndex *pindexLast, const CBlockHeader *pblock, const Consensus::Params &) |
| Digishield v3 - used in Fabcoin mainnet currently. More...
|
|
unsigned int | DigishieldCalculateNextWorkRequired (const CBlockIndex *pindexLast, arith_uint256 bnAvg, int64_t nLastBlockTime, int64_t nFirstBlockTime, const Consensus::Params ¶ms) |
|
unsigned int | ReduceDifficultyBy (const CBlockIndex *pindexLast, int64_t multiplier, const Consensus::Params ¶ms) |
| Reduce the difficulty by a given multiplier. More...
|
|
bool | CheckEquihashSolution (const CBlockHeader *pblock, const CChainParams &) |
| Check whether the Equihash solution in a block header is valid. More...
|
|
bool | CheckProofOfWork (uint256 hash, unsigned int nBits, bool postfork, const Consensus::Params &) |
| Check whether a block hash satisfies the proof-of-work requirement specified by nBits. More...
|
|
Check whether the Equihash solution in a block header is valid.
Definition at line 258 of file pow.cpp.
Check whether a block hash satisfies the proof-of-work requirement specified by nBits.
Definition at line 290 of file pow.cpp.
Digishield v3 - used in Fabcoin mainnet currently.
Definition at line 193 of file pow.cpp.
Zawy's LWMA - next generation algorithm.
Definition at line 64 of file pow.cpp.
Reduce the difficulty by a given multiplier.
It doesn't check uint256 overflow!
Definition at line 242 of file pow.cpp.