PIVX Core  5.6.99
P2P Digital Currency
Functions
pow.cpp File Reference
#include "pow.h"
#include "chain.h"
#include "chainparams.h"
#include "primitives/block.h"
#include "uint256.h"
#include "util/system.h"
#include <math.h>
Include dependency graph for pow.cpp:

Go to the source code of this file.

Functions

unsigned int GetNextWorkRequired (const CBlockIndex *pindexLast, const CBlockHeader *pblock)
 
bool CheckProofOfWork (uint256 hash, unsigned int nBits)
 Check whether a block hash satisfies the proof-of-work requirement specified by nBits. More...
 
arith_uint256 GetBlockProof (const CBlockIndex &block)
 

Function Documentation

◆ CheckProofOfWork()

bool CheckProofOfWork ( uint256  hash,
unsigned int  nBits 
)

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

Definition at line 122 of file pow.cpp.

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

◆ GetBlockProof()

arith_uint256 GetBlockProof ( const CBlockIndex block)

Definition at line 141 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 
)

Definition at line 19 of file pow.cpp.

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