PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Typedefs | Functions | Variables
miner.cpp File Reference
#include "miner.h"
#include "amount.h"
#include "blocksignature.h"
#include "consensus/merkle.h"
#include "consensus/tx_verify.h"
#include "hash.h"
#include "invalid.h"
#include "main.h"
#include "masternode-sync.h"
#include "net.h"
#include "poa.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "timedata.h"
#include "util.h"
#include "utilmoneystr.h"
#include "masternode-payments.h"
#include "validationinterface.h"
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
Include dependency graph for miner.cpp:

Go to the source code of this file.

Classes

class  COrphan
 
class  TxPriorityCompare
 

Typedefs

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

Functions

void UpdateTime (CBlockHeader *pblock, const CBlockIndex *pindexPrev)
 Check mined block. More...
 
uint32_t GetListOfPoSInfo (uint32_t currentHeight, std::vector< PoSBlockSummary > &audits)
 
CBlockTemplateCreateNewBlock (const CScript &scriptPubKeyIn, const CPubKey &txPub, const CKey &txPriv, CWallet *pwallet, bool fProofOfStake)
 Generate a new block, without valid proof-of-work. More...
 
CBlockTemplateCreateNewPoABlock (const CScript &scriptPubKeyIn, const CPubKey &txPub, const CKey &txPriv, CWallet *pwallet)
 
void IncrementExtraNonce (CBlock *pblock, CBlockIndex *pindexPrev, unsigned int &nExtraNonce)
 Modify the extranonce in a block. More...
 

Variables

uint64_t nLastBlockTx = 0
 
uint64_t nLastBlockSize = 0
 
int64_t nLastCoinStakeSearchInterval = 0
 
int64_t nDefaultMinerSleep = 0
 

Typedef Documentation

◆ TxPriority

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

Definition at line 72 of file miner.cpp.

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:

◆ CreateNewPoABlock()

CBlockTemplate* CreateNewPoABlock ( const CScript scriptPubKeyIn,
const CPubKey txPub,
const CKey txPriv,
CWallet pwallet 
)

Definition at line 509 of file miner.cpp.

Here is the call graph for this function:

◆ GetListOfPoSInfo()

uint32_t GetListOfPoSInfo ( uint32_t  currentHeight,
std::vector< PoSBlockSummary > &  audits 
)

Definition at line 103 of file miner.cpp.

Here is the call graph for this function:
Here is the caller 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 pblock,
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

◆ nDefaultMinerSleep

int64_t nDefaultMinerSleep = 0

Definition at line 68 of file miner.cpp.

◆ nLastBlockSize

uint64_t nLastBlockSize = 0

Definition at line 66 of file miner.cpp.

◆ nLastBlockTx

uint64_t nLastBlockTx = 0

Definition at line 65 of file miner.cpp.

◆ nLastCoinStakeSearchInterval

int64_t nLastCoinStakeSearchInterval = 0

Definition at line 67 of file miner.cpp.