message: Update block header check
diff: @@ -3892,9 +3892,9 @@ bool CheckBlockSignature(const CBlock& block)
  static bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, bool fCheckPOW = true)
  {
  // Check proof of work matches claimed amount
  - if (fCheckPOW && !CheckProofOfWork(block.GetHash(), block.nBits, consensusParams))
  + if (fCheckPOW && block.IsProofOfWork() && !CheckHeaderPoW(block, consensusParams))
  return state.DoS(50, false, REJECT_INVALID, "high-hash", false, "proof of work failed");
  -
  + // PoS header proofs are not validated and always return true
  return true;
  }
  