]> Git Repo - VerusCoin.git/blame - src/miner.h
UniValue: compact (!pretty) output should not include extra whitespace
[VerusCoin.git] / src / miner.h
CommitLineData
d247a5d1 1// Copyright (c) 2009-2010 Satoshi Nakamoto
db0e8ccd 2// Copyright (c) 2009-2013 The Bitcoin developers
d247a5d1
JG
3// Distributed under the MIT/X11 software license, see the accompanying
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
51ed9ec9
BD
9#include <stdint.h>
10
11class CBlock;
12class CBlockIndex;
51ed9ec9
BD
13class CReserveKey;
14class CScript;
15class CWallet;
d247a5d1 16
ac14bcc1
PK
17struct CBlockTemplate;
18
d247a5d1 19/** Run the miner threads */
c8b74258 20void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads);
d247a5d1 21/** Generate a new block, without valid proof-of-work */
f1dbed92 22CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn);
7e170189 23CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey);
d247a5d1
JG
24/** Modify the extranonce in a block */
25void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
d247a5d1
JG
26/** Check mined block */
27bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey);
d247a5d1 28
8d750f1d 29extern double dHashesPerSec;
51ed9ec9 30extern int64_t nHPSTimerStart;
8d750f1d 31
d247a5d1 32#endif // BITCOIN_MINER_H
This page took 0.073459 seconds and 4 git commands to generate.