diff --git a/src/pow.h b/src/pow.h --- a/src/pow.h +++ b/src/pow.h @@ -8,6 +8,7 @@ #include +struct BlockHash; class CBlockHeader; class CBlockIndex; class uint256; @@ -27,7 +28,7 @@ * Check whether a block hash satisfies the proof-of-work requirement specified * by nBits */ -bool CheckProofOfWork(uint256 hash, uint32_t nBits, +bool CheckProofOfWork(const BlockHash &hash, uint32_t nBits, const Consensus::Params ¶ms); /** diff --git a/src/pow.cpp b/src/pow.cpp --- a/src/pow.cpp +++ b/src/pow.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -139,7 +140,7 @@ return bnNew.GetCompact(); } -bool CheckProofOfWork(uint256 hash, uint32_t nBits, +bool CheckProofOfWork(const BlockHash &hash, uint32_t nBits, const Consensus::Params ¶ms) { bool fNegative; bool fOverflow;