CalculateClaimedHeadersWork

Return the sum of the claimed work on a given set of headers. No verification of PoW is done.

Synopsis

Declared in <validation.h>

arith_uint256
CalculateClaimedHeadersWork(std::span<CBlockHeader const> headers);

Return Value

The total claimed work across the headers.

Parameters

NameDescription
headersThe headers whose claimed work is summed.