Merge pull request #2855 from Diapolo/guard_CreatePidFile
[VerusCoin.git] / src / miner.h
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2012 The Bitcoin developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOIN_MINER_H
6 #define BITCOIN_MINER_H
7
8 #include "core.h"
9 #include "wallet.h"
10
11 /** Run the miner threads */
12 void GenerateBitcoins(bool fGenerate, CWallet* pwallet);
13 /** Generate a new block, without valid proof-of-work */
14 CBlockTemplate* CreateNewBlock(CReserveKey& reservekey);
15 /** Modify the extranonce in a block */
16 void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
17 /** Do mining precalculation */
18 void FormatHashBuffers(CBlock* pblock, char* pmidstate, char* pdata, char* phash1);
19 /** Check mined block */
20 bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey);
21 /** Base sha256 mining transform */
22 void SHA256Transform(void* pstate, void* pinput, const void* pinit);
23
24 #endif // BITCOIN_MINER_H
This page took 0.024214 seconds and 4 git commands to generate.