Anoncoin  0.9.4
P2P Digital Currency
Functions | Variables
miner.h File Reference
#include <stdint.h>
Include dependency graph for miner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void GenerateAnoncoins (bool fGenerate, CWallet *pwallet, int nThreads)
 Run the miner threads. More...
 
CBlockTemplateCreateNewBlock (const CScript &scriptPubKeyIn)
 Generate a new block, without valid proof-of-work. More...
 
CBlockTemplateCreateNewBlockWithKey (CReserveKey &reservekey)
 
void IncrementExtraNonce (CBlock *pblock, CBlockIndex *pindexPrev, unsigned int &nExtraNonce)
 Modify the extranonce in a block. More...
 
void FormatHashBuffers (CBlock *pblock, char *pmidstate, char *pdata, char *phash1)
 Do mining precalculation. More...
 
bool CheckWork (CBlock *pblock, CWallet &wallet, CReserveKey &reservekey)
 Check mined block. More...
 
void SHA256Transform (void *pstate, void *pinput, const void *pinit)
 Base sha256 mining transform. More...
 

Variables

double dHashesPerSec
 
int64_t nHPSTimerStart
 

Function Documentation

bool CheckWork ( CBlock pblock,
CWallet wallet,
CReserveKey reservekey 
)

Check mined block.

CBlockTemplate* CreateNewBlock ( const CScript scriptPubKeyIn)

Generate a new block, without valid proof-of-work.

Definition at line 113 of file miner.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CBlockTemplate* CreateNewBlockWithKey ( CReserveKey reservekey)
void FormatHashBuffers ( CBlock pblock,
char *  pmidstate,
char *  pdata,
char *  phash1 
)

Do mining precalculation.

Definition at line 371 of file miner.cpp.

Here is the call graph for this function:

void GenerateAnoncoins ( bool  fGenerate,
CWallet pwallet,
int  nThreads 
)

Run the miner threads.

Here is the caller graph for this function:

void IncrementExtraNonce ( CBlock pblock,
CBlockIndex pindexPrev,
unsigned int &  nExtraNonce 
)

Modify the extranonce in a block.

Definition at line 353 of file miner.cpp.

Here is the call graph for this function:

void SHA256Transform ( void *  pstate,
void *  pinput,
const void *  pinit 
)

Base sha256 mining transform.

Definition at line 43 of file miner.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

double dHashesPerSec
int64_t nHPSTimerStart