]> Git Repo - VerusCoin.git/blob - src/miner.h
Merge pull request #5580
[VerusCoin.git] / src / miner.h
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2013 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.
5
6 #ifndef BITCOIN_MINER_H
7 #define BITCOIN_MINER_H
8
9 #include <stdint.h>
10
11 class CBlock;
12 class CBlockHeader;
13 class CBlockIndex;
14 class CReserveKey;
15 class CScript;
16 class CWallet;
17
18 struct CBlockTemplate;
19
20 /** Run the miner threads */
21 void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads);
22 /** Generate a new block, without valid proof-of-work */
23 CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn);
24 CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey);
25 /** Modify the extranonce in a block */
26 void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
27 void UpdateTime(CBlockHeader* block, const CBlockIndex* pindexPrev);
28
29 extern double dHashesPerSec;
30 extern int64_t nHPSTimerStart;
31
32 #endif // BITCOIN_MINER_H
This page took 0.025262 seconds and 4 git commands to generate.