Convert nBits value to target.
Declared in <pow.h>
std::optional<arith_uint256>
DeriveTarget(
unsigned int nBits,
uint256 pow_limit);
the proof-of-work target or nullopt if the nBits value is invalid (due to overflow or exceeding pow_limit)
| Name | Description |
|---|---|
| nBits [in] | compact representation of the target |
| pow_limit [in] | PoW limit (consensus parameter) |