PIVX Core  5.6.99
P2P Digital Currency
Enumerations | Functions
pow.h File Reference
#include <stdint.h>
Include dependency graph for pow.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  DiffMode { DIFF_DEFAULT = 0 , DIFF_BTC = 1 , DIFF_KGW = 2 , DIFF_DGW = 3 }
 

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)
 

Enumeration Type Documentation

◆ DiffMode

enum DiffMode
Enumerator
DIFF_DEFAULT 
DIFF_BTC 
DIFF_KGW 
DIFF_DGW 

Definition at line 19 of file pow.h.

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: