[#CalculateNextWorkRequired] = CalculateNextWorkRequired :mrdocs: Compute the retargeted proof‐of‐work target after a difficulty adjustment interval. == Synopsis Declared in `<pow.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned int CalculateNextWorkRequired( xref:CBlockIndex.adoc[CBlockIndex] const* pindexLast, int64_t nFirstBlockTime, xref:Consensus/Params.adoc[Consensus::Params] const& params); ---- == Return Value The retargeted target in compact nBits form. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#