Convert nBits value to target.

Synopsis

Declared in <pow.h>

std::optional<arith_uint256>
DeriveTarget(
    unsigned int nBits,
    uint256 pow_limit);

Return Value

the proof‐of‐work target or nullopt if the nBits value is invalid (due to overflow or exceeding pow_limit)

Parameters

Name

Description

nBits [in]

compact representation of the target

pow_limit [in]

PoW limit (consensus parameter)

Created with MrDocs