GetBitsProof

Compute how much work an nBits value corresponds to.

Synopsis

Declared in <chain.h>

arith_uint256
GetBitsProof(uint32_t bits);

Return Value

The expected number of hashes required to satisfy the target.

Parameters

NameDescription
bitsThe compact-encoded difficulty target.