Skip to content

Commit

Permalink
Update validation.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
aguycalled authored Jul 10, 2024
1 parent 155fa9a commit 949d3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3997,7 +3997,7 @@ std::vector<unsigned char> ChainstateManager::GenerateCoinbaseCommitment(CBlock&
bool HasValidProofOfWork(const std::vector<CBlockHeader>& headers, const Consensus::Params& consensusParams)
{
return std::all_of(headers.cbegin(), headers.cend(),
[&](const auto& header) { return CheckProofOfWork(header.GetHash(), header.nBits, consensusParams);});
[&](const auto& header) { return header.IsProofOfStake() ? true : CheckProofOfWork(header.GetHash(), header.nBits, consensusParams); });
}

arith_uint256 CalculateHeadersWork(const std::vector<CBlockHeader>& headers)
Expand Down

0 comments on commit 949d3be

Please sign in to comment.