Compute the retargeted proof‐of‐work target after a difficulty adjustment interval.

Synopsis

Declared in <pow.h>

unsigned int
CalculateNextWorkRequired(
    CBlockIndex const* pindexLast,
    int64_t nFirstBlockTime,
    Consensus::Params const& params);

Return Value

The retargeted target in compact nBits form.

Parameters

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.

Created with MrDocs