Raven Core  3.0.0
P2P Digital Currency
Functions
pow.cpp File Reference
#include "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#include "primitives/block.h"
#include "uint256.h"
#include "util.h"
#include "validation.h"
#include "chainparams.h"
#include "tinyformat.h"
Include dependency graph for pow.cpp:

Go to the source code of this file.

Functions

unsigned int GetNextWorkRequiredBTC (const CBlockIndex *pindexLast, const CBlockHeader *pblock, const Consensus::Params &params)
 
unsigned int GetNextWorkRequired (const CBlockIndex *pindexLast, const CBlockHeader *pblock, const Consensus::Params &params)
 
unsigned int CalculateNextWorkRequired (const CBlockIndex *pindexLast, int64_t nFirstBlockTime, const Consensus::Params &params)
 
bool CheckProofOfWork (uint256 hash, unsigned int nBits, const Consensus::Params &params)
 Check whether a block hash satisfies the proof-of-work requirement specified by nBits. More...
 

Function Documentation

◆ CalculateNextWorkRequired()

unsigned int CalculateNextWorkRequired ( const CBlockIndex pindexLast,
int64_t  nFirstBlockTime,
const Consensus::Params params 
)

Definition at line 142 of file pow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckProofOfWork()

bool CheckProofOfWork ( uint256  hash,
unsigned int  nBits,
const Consensus::Params params 
)

Check whether a block hash satisfies the proof-of-work requirement specified by nBits.

Definition at line 167 of file pow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNextWorkRequired()

unsigned int GetNextWorkRequired ( const CBlockIndex pindexLast,
const CBlockHeader pblock,
const Consensus::Params params 
)

Definition at line 123 of file pow.cpp.

Here is the caller graph for this function:

◆ GetNextWorkRequiredBTC()

unsigned int GetNextWorkRequiredBTC ( const CBlockIndex pindexLast,
const CBlockHeader pblock,
const Consensus::Params params 
)

Definition at line 87 of file pow.cpp.

Here is the call graph for this function: