diff options
author | Greg Sanders <gsanders87@gmail.com> | 2024-03-05 10:01:24 -0500 |
---|---|---|
committer | Greg Sanders <gsanders87@gmail.com> | 2024-03-05 10:01:24 -0500 |
commit | eb7cc9fd2140df77acc6eb42004cf45b260bc629 (patch) | |
tree | c91c799dac6e2772e770d3c0bc0c6d1be78561ac /src/validation.h | |
parent | 2b260eadf7960290328e13dbdb029fd506105ca4 (diff) | |
download | bitcoin-eb7cc9fd2140df77acc6eb42004cf45b260bc629.tar.xz |
Rename CalculateHeadersWork to CalculateClaimedHeadersWork
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h index aeef875e3f..71aac46f81 100644 --- a/src/validation.h +++ b/src/validation.h @@ -382,8 +382,8 @@ bool HasValidProofOfWork(const std::vector<CBlockHeader>& headers, const Consens /** Check if a block has been mutated (with respect to its merkle root and witness commitments). */ bool IsBlockMutated(const CBlock& block, bool check_witness_root); -/** Return the sum of the work on a given set of headers */ -arith_uint256 CalculateHeadersWork(const std::vector<CBlockHeader>& headers); +/** Return the sum of the claimed work on a given set of headers. No verification of PoW is done. */ +arith_uint256 CalculateClaimedHeadersWork(const std::vector<CBlockHeader>& headers); enum class VerifyDBResult { SUCCESS, |