Compute the proof-of-work target (nBits) required for the block following pindexLast.
Declared in <pow.h>
unsigned int
GetNextWorkRequired(
CBlockIndex const* pindexLast,
CBlockHeader const* pblock,
Consensus::Params const& params);
The required target in compact nBits form.
| 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. |