Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions
miner.h File Reference
#include <primitives/block.h>
#include <libgpusolver/gpuconfig.h>
#include <txmempool.h>
#include <stdint.h>
#include <memory>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <validation.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
 
struct  CTxMemPoolModifiedEntry
 
struct  CompareCTxMemPoolIter
 Comparator for CTxMemPool::txiter objects. More...
 
struct  modifiedentry_iter
 
struct  CompareModifiedEntry
 
struct  CompareTxIterByAncestorCount
 
struct  update_for_parent_inclusion
 
class  BlockAssembler
 Generate a new block, without valid proof-of-work. More...
 
struct  BlockAssembler::Options
 

Namespaces

 Consensus
 

Typedefs

typedef boost::multi_index_container< CTxMemPoolModifiedEntry, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< modifiedentry_iter, CompareCTxMemPoolIter >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< ancestor_score_or_gas_price >, boost::multi_index::identity< CTxMemPoolModifiedEntry >, CompareModifiedEntry > >> indexed_modified_transaction_set
 
typedef indexed_modified_transaction_set::nth_index< 0 >::type::iterator modtxiter
 
typedef indexed_modified_transaction_set::index< ancestor_score_or_gas_price >::type::iterator modtxscoreiter
 

Functions

void GenerateFabcoins (bool fGenerate, int nThreads, const CChainParams &chainparams)
 Run the miner threads. More...
 
void GenerateFabcoins (bool fGenerate, int nThreads, const CChainParams &chainparams, GPUConfig conf)
 
void IncrementExtraNonce (CBlock *pblock, const CBlockIndex *pindexPrev, unsigned int &nExtraNonce)
 Modify the extranonce in a block. More...
 
int64_t UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev)
 
void Scan_nNonce_nSolution (CBlock *pblock, unsigned int n, unsigned int k)
 
void creategenesisblock (uint32_t nTime, uint32_t nBits)
 

Typedef Documentation

typedef boost::multi_index_container< CTxMemPoolModifiedEntry, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< modifiedentry_iter, CompareCTxMemPoolIter >, boost::multi_index::ordered_non_unique< boost::multi_index::tag<ancestor_score_or_gas_price>, boost::multi_index::identity<CTxMemPoolModifiedEntry>, CompareModifiedEntry > >> indexed_modified_transaction_set

Definition at line 167 of file miner.h.

typedef indexed_modified_transaction_set::nth_index<0>::type::iterator modtxiter

Definition at line 169 of file miner.h.

typedef indexed_modified_transaction_set::index<ancestor_score_or_gas_price>::type::iterator modtxscoreiter

Definition at line 170 of file miner.h.

Function Documentation

void creategenesisblock ( uint32_t  nTime,
uint32_t  nBits 
)

Here is the caller graph for this function:

void GenerateFabcoins ( bool  fGenerate,
int  nThreads,
const CChainParams chainparams 
)

Run the miner threads.

Here is the caller graph for this function:

void GenerateFabcoins ( bool  fGenerate,
int  nThreads,
const CChainParams chainparams,
GPUConfig  conf 
)
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:

void Scan_nNonce_nSolution ( CBlock pblock,
unsigned int  n,
unsigned int  k 
)

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: