PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Functions | Variables
miner.h File Reference
#include "primitives/block.h"
#include <stdint.h>
#include "key.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.

Classes

struct  CBlockTemplate
 

Functions

CBlockTemplateCreateNewBlock (const CScript &scriptPubKeyIn, const CPubKey &txPub, const CKey &txPriv, CWallet *pwallet, bool fProofOfStake)
 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 UpdateTime (CBlockHeader *block, const CBlockIndex *pindexPrev)
 Check mined block. More...
 

Variables

double dHashesPerSec
 
int64_t nHPSTimerStart
 

Function Documentation

◆ CreateNewBlock()

CBlockTemplate* CreateNewBlock ( const CScript scriptPubKeyIn,
const CPubKey txPub,
const CKey txPriv,
CWallet pwallet,
bool  fProofOfStake 
)

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

Definition at line 160 of file miner.cpp.

Here is the call graph for this function:

◆ IncrementExtraNonce()

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

Modify the extranonce in a block.

Definition at line 609 of file miner.cpp.

Here is the call graph for this function:

◆ UpdateTime()

void UpdateTime ( CBlockHeader block,
const CBlockIndex pindexPrev 
)

Check mined block.

Definition at line 94 of file miner.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ dHashesPerSec

double dHashesPerSec

◆ nHPSTimerStart

int64_t nHPSTimerStart