]> Git Repo - VerusCoin.git/blob - src/miner.h
test
[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 "primitives/block.h"
10
11 #include <stdint.h>
12
13 class CBlockIndex;
14 class CReserveKey;
15 class CScript;
16 class CWallet;
17 namespace Consensus { struct Params; };
18
19 struct CBlockTemplate
20 {
21     CBlock block;
22     std::vector<CAmount> vTxFees;
23     std::vector<int64_t> vTxSigOps;
24 };
25
26 /** Run the miner threads */
27 void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads);
28 /** Generate a new block, without valid proof-of-work */
29 CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn);
30 CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey);
31 /** Modify the extranonce in a block */
32 void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
33 void UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev);
34
35 #endif // BITCOIN_MINER_H
This page took 0.025084 seconds and 4 git commands to generate.