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

Name

Description

fNegative

Whether to set the sign bit in the encoding.

Created with MrDocs