BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
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 <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 <util.h>
#include <utilmoneystr.h>
#include <validationinterface.h>
#include <wallet/wallet.h>
#include <algorithm>
#include <queue>
#include <utility>
#include <boost/thread.hpp>
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 GenerateBSHA3s (bool fGenerate, int nThreads, const CChainParams &chainparams)
 

Variables

uint64_t nLastBlockTx = 0
 
uint64_t nLastBlockWeight = 0
 
uint64_t nMiningTimeStart = 0
 
uint64_t nHashesDone = 0
 
uint64_t nHashesPerSec = 0
 

Function Documentation

◆ GenerateBSHA3s()

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

Definition at line 648 of file miner.cpp.

Here is the call graph for this function:

◆ GetFirstWallet()

CWallet* GetFirstWallet ( )

Definition at line 487 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 443 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 47 of file miner.cpp.

Here is the call graph for this function:

Variable Documentation

◆ nHashesDone

uint64_t nHashesDone = 0

Definition at line 44 of file miner.cpp.

◆ nHashesPerSec

uint64_t nHashesPerSec = 0

Definition at line 45 of file miner.cpp.

◆ nLastBlockTx

uint64_t nLastBlockTx = 0

Definition at line 41 of file miner.cpp.

◆ nLastBlockWeight

uint64_t nLastBlockWeight = 0

Definition at line 42 of file miner.cpp.

◆ nMiningTimeStart

uint64_t nMiningTimeStart = 0

Definition at line 43 of file miner.cpp.