]> Git Repo - VerusCoin.git/blob - src/pow.h
Merge pull request #5470
[VerusCoin.git] / src / pow.h
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2014 The Bitcoin developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6 #ifndef BITCOIN_POW_H
7 #define BITCOIN_POW_H
8
9 #include <stdint.h>
10
11 class CBlockHeader;
12 class CBlockIndex;
13 class uint256;
14
15 unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock);
16
17 /** Check whether a block hash satisfies the proof-of-work requirement specified by nBits */
18 bool CheckProofOfWork(uint256 hash, unsigned int nBits);
19 uint256 GetBlockProof(const CBlockIndex& block);
20
21 #endif // BITCOIN_POW_H
This page took 0.024308 seconds and 4 git commands to generate.