GetBlockProof

GetBlockProof overloads

Synopses

Declared in <chain.h>

Compute how much work a block header corresponds to.

arith_uint256
GetBlockProof(CBlockHeader const& header);
» more...

Compute how much work a block index entry corresponds to.

arith_uint256
GetBlockProof(CBlockIndex const& block);
» more...

Return Value

  • The expected number of hashes required to satisfy the header's target.
  • The expected number of hashes required to satisfy the block's target.

Parameters

NameDescription
headerThe block header.
blockThe block index entry.