Bitcoin Core  0.20.99
P2P Digital Currency
Functions
pow.h File Reference
#include <consensus/params.h>
#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.

Functions

unsigned int GetNextWorkRequired (const CBlockIndex *pindexLast, const CBlockHeader *pblock, const Consensus::Params &)
 
unsigned int CalculateNextWorkRequired (const CBlockIndex *pindexLast, int64_t nFirstBlockTime, const Consensus::Params &)
 
bool CheckProofOfWork (uint256 hash, unsigned int nBits, const Consensus::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  
)

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

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

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

Definition at line 13 of file pow.cpp.

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