Fabcoin Core  0.16.2
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 <./wallet/wallet.h>
#include <consensus/consensus.h>
#include <consensus/tx_verify.h>
#include <consensus/merkle.h>
#include <consensus/validation.h>
#include <crypto/equihash.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 <algorithm>
#include <queue>
#include <utility>
#include <boost/thread.hpp>
#include <boost/tuple/tuple.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)
 
bool IsBlockTooLate (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...
 

Variables

std::mutex g_cs
 
bool g_cancelSolver = false
 
int g_nSols [128] = {0}
 
uint64_t nLastBlockTx = 0
 
uint64_t nLastBlockWeight = 0
 

Function Documentation

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

Modify the extranonce in a block.

Definition at line 715 of file miner.cpp.

Here is the caller graph for this function:

bool IsBlockTooLate ( CBlockHeader pblock,
const Consensus::Params consensusParams,
const CBlockIndex pindexPrev 
)

Definition at line 80 of file miner.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 65 of file miner.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

bool g_cancelSolver = false

Definition at line 48 of file miner.cpp.

std::mutex g_cs

Definition at line 47 of file miner.cpp.

int g_nSols[128] = {0}

Definition at line 49 of file miner.cpp.

uint64_t nLastBlockTx = 0

Definition at line 62 of file miner.cpp.

uint64_t nLastBlockWeight = 0

Definition at line 63 of file miner.cpp.