Raven Core  3.0.0
P2P Digital Currency
Functions | Variables
miner.cpp File Reference
#include "miner.h"
#include "amount.h"
#include "chain.h"
#include "chainparams.h"
#include "coins.h"
#include "consensus/consensus.h"
#include "consensus/tx_verify.h"
#include "consensus/merkle.h"
#include "consensus/validation.h"
#include "hash.h"
#include "validation.h"
#include "net.h"
#include "policy/feerate.h"
#include "policy/policy.h"
#include "pow.h"
#include "primitives/transaction.h"
#include "script/standard.h"
#include "timedata.h"
#include "txmempool.h"
#include "util.h"
#include "utilmoneystr.h"
#include "validationinterface.h"
#include "wallet/wallet.h"
#include <boost/thread.hpp>
#include <algorithm>
#include <queue>
#include <utility>
Include dependency graph for miner.cpp:

Go to the source code of this file.

Functions

int64_t UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev)
 
void IncrementExtraNonce (CBlock *pblock, const CBlockIndex *pindexPrev, unsigned int &nExtraNonce)
 Modify the extranonce in a block. More...
 
CWalletGetFirstWallet ()
 
int GenerateRavens (bool fGenerate, int nThreads, const CChainParams &chainparams)
 

Variables

std::vector< CWalletRefvpwallets
 
uint64_t nLastBlockTx = 0
 
uint64_t nLastBlockWeight = 0
 
uint64_t nMiningTimeStart = 0
 
uint64_t nHashesPerSec = 0
 
uint64_t nHashesDone = 0
 

Function Documentation

◆ GenerateRavens()

int GenerateRavens ( bool  fGenerate,
int  nThreads,
const CChainParams chainparams 
)

Definition at line 668 of file miner.cpp.

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

◆ GetFirstWallet()

CWallet* GetFirstWallet ( )

Definition at line 500 of file miner.cpp.

Here is the call graph for this function:

◆ IncrementExtraNonce()

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

Modify the extranonce in a block.

Definition at line 455 of file miner.cpp.

Here is the caller graph for this function:

◆ UpdateTime()

int64_t UpdateTime ( CBlockHeader pblock,
const Consensus::Params consensusParams,
const CBlockIndex pindexPrev 
)

Definition at line 60 of file miner.cpp.

Here is the call graph for this function:

Variable Documentation

◆ nHashesDone

uint64_t nHashesDone = 0

Definition at line 57 of file miner.cpp.

◆ nHashesPerSec

uint64_t nHashesPerSec = 0

Definition at line 56 of file miner.cpp.

◆ nLastBlockTx

uint64_t nLastBlockTx = 0

Definition at line 53 of file miner.cpp.

◆ nLastBlockWeight

uint64_t nLastBlockWeight = 0

Definition at line 54 of file miner.cpp.

◆ nMiningTimeStart

uint64_t nMiningTimeStart = 0

Definition at line 55 of file miner.cpp.

◆ vpwallets

std::vector<CWalletRef> vpwallets

Definition at line 44 of file wallet.cpp.