Compute the retargeted proof-of-work target after a difficulty adjustment interval.
Declared in <pow.h>
unsigned int
CalculateNextWorkRequired(
CBlockIndex const* pindexLast,
int64_t nFirstBlockTime,
Consensus::Params const& params);
The retargeted target in compact nBits form.
| Name | Description |
|---|---|
| pindexLast | The last block of the interval being retargeted. |
| nFirstBlockTime | The timestamp of the first block in the interval. |
| params | The consensus parameters for the active chain. |