Anoncoin  0.9.4
P2P Digital Currency
Classes | Typedefs | Functions | Variables
miner.cpp File Reference
#include "miner.h"
#include "core.h"
#include "main.h"
#include "net.h"
Include dependency graph for miner.cpp:

Go to the source code of this file.

Classes

class  COrphan
 
class  TxPriorityCompare
 

Typedefs

typedef boost::tuple< double, double, const CTransaction * > TxPriority
 

Functions

void SHA256Transform (void *pstate, void *pinput, const void *pinit)
 Base sha256 mining transform. More...
 
CBlockTemplateCreateNewBlock (const CScript &scriptPubKeyIn)
 Generate a new block, without valid proof-of-work. More...
 
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...
 

Variables

uint64_t nLastBlockTx = 0
 
uint64_t nLastBlockSize = 0
 

Typedef Documentation

typedef boost::tuple<double, double, const CTransaction*> TxPriority

Definition at line 90 of file miner.cpp.

Function Documentation

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:

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 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

uint64_t nLastBlockSize = 0

Definition at line 87 of file miner.cpp.

uint64_t nLastBlockTx = 0

Definition at line 86 of file miner.cpp.