]> Git Repo - VerusCoin.git/blame - src/miner.h
Auto merge of #1116 - ebfull:performance-check-valid-pour-fix, r=ebfull
[VerusCoin.git] / src / miner.h
CommitLineData
d247a5d1 1// Copyright (c) 2009-2010 Satoshi Nakamoto
f914f1a7 2// Copyright (c) 2009-2013 The Bitcoin Core developers
78253fcb 3// Distributed under the MIT software license, see the accompanying
d247a5d1 4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
51ed9ec9 5
d247a5d1
JG
6#ifndef BITCOIN_MINER_H
7#define BITCOIN_MINER_H
8
2ce63d39
LD
9#include "primitives/block.h"
10
51ed9ec9
BD
11#include <stdint.h>
12
51ed9ec9 13class CBlockIndex;
51ed9ec9
BD
14class CReserveKey;
15class CScript;
16class CWallet;
30c43d98 17namespace Consensus { struct Params; };
d247a5d1 18
2ce63d39
LD
19struct CBlockTemplate
20{
21 CBlock block;
22 std::vector<CAmount> vTxFees;
23 std::vector<int64_t> vTxSigOps;
24};
ac14bcc1 25
d247a5d1 26/** Run the miner threads */
c8b74258 27void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads);
d247a5d1 28/** Generate a new block, without valid proof-of-work */
48265f3c
WL
29CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn);
30CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey);
d247a5d1
JG
31/** Modify the extranonce in a block */
32void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
bebe7282 33void UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev);
d247a5d1
JG
34
35#endif // BITCOIN_MINER_H
This page took 0.158149 seconds and 4 git commands to generate.