Merge #11683: tests: Remove unused mininode functions {ser,deser}_int_vector(......
[bitcoinplatinum.git] / src / pow.h
blobdb2f5343b51f3ee30c2730d75d84e108146f0247
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2016 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 #ifndef BITCOIN_POW_H
7 #define BITCOIN_POW_H
9 #include <consensus/params.h>
11 #include <stdint.h>
13 class CBlockHeader;
14 class CBlockIndex;
15 class uint256;
17 unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&);
18 unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params&);
20 /** Check whether a block hash satisfies the proof-of-work requirement specified by nBits */
21 bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params&);
23 #endif // BITCOIN_POW_H