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