Compute the proof‐of‐work target (nBits) required for the block following pindexLast.
Synopsis
Declared in <pow.h>
unsigned int
GetNextWorkRequired(
CBlockIndex const* pindexLast,
CBlockHeader const* pblock,
Consensus::Params const& params);
Return Value
The required target in compact nBits form.
Parameters
Name |
Description |
pindexLast |
The last block before the one whose target is being computed. |
pblock |
The candidate block header being connected. |
params |
The consensus parameters for the active chain. |
Created with MrDocs