arith_uint256::GetCompact

Encodes the value into the compact difficulty-target format described above.

Synopsis

Declared in <arith_uint256.h>

uint32_t
GetCompact(bool fNegative = false) const;

Return Value

The 32-bit compact representation of the value.

Parameters

NameDescription
fNegativeWhether to set the sign bit in the encoding.