#include <pow.h>
#include <arith_uint256.h>
#include <chain.h>
#include <chainparams.h>
#include <crypto/equihash.h>
#include <primitives/block.h>
#include <streams.h>
#include <uint256.h>
#include <util.h>
Go to the source code of this file.
|
unsigned int | GetNextWorkRequired (const CBlockIndex *pindexPrev, const CBlockHeader *pblock, const Consensus::Params ¶ms) |
|
unsigned int | LwmaGetNextWorkRequired (const CBlockIndex *pindexPrev, const CBlockHeader *pblock, const Consensus::Params ¶ms) |
| Zawy's LWMA - next generation algorithm. More...
|
|
unsigned int | LwmaCalculateNextWorkRequired (const CBlockIndex *pindexPrev, const Consensus::Params ¶ms) |
|
unsigned int | DigishieldGetNextWorkRequired (const CBlockIndex *pindexPrev, const CBlockHeader *pblock, const Consensus::Params ¶ms) |
| Digishield v3 - used in Fabcoin mainnet currently. More...
|
|
unsigned int | DigishieldCalculateNextWorkRequired (const CBlockIndex *pindexPrev, arith_uint256 bnAvg, int64_t nLastBlockTime, int64_t nFirstBlockTime, const Consensus::Params ¶ms) |
|
unsigned int | ReduceDifficultyBy (const CBlockIndex *pindexPrev, int64_t multiplier, const Consensus::Params ¶ms) |
| Reduce the difficulty by a given multiplier. More...
|
|
bool | CheckEquihashSolution (const CBlockHeader *pblock, const CChainParams ¶ms) |
| Check whether the Equihash solution in a block header is valid. More...
|
|
bool | CheckProofOfWork (uint256 hash, unsigned int nBits, bool postfork, const Consensus::Params ¶ms) |
| 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.