Bitcoin ABC  0.22.13
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions | Variables
miner.h File Reference
#include <primitives/block.h>
#include <txmempool.h>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index_container.hpp>
#include <cstdint>
#include <memory>
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.


struct  CBlockTemplateEntry
struct  CBlockTemplate
struct  CTxMemPoolModifiedEntry
struct  CompareCTxMemPoolIter
 Comparator for CTxMemPool::txiter objects. More...
struct  modifiedentry_iter
struct  CompareTxIterByAncestorCount
struct  update_for_parent_inclusion
class  BlockAssembler
 Generate a new block, without valid proof-of-work. More...
struct  BlockAssembler::Options




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 >, boost::multi_index::identity< CTxMemPoolModifiedEntry >, CompareTxMemPoolEntryByAncestorFee > > > indexed_modified_transaction_set
typedef indexed_modified_transaction_set::nth_index< 0 >::type::iterator modtxiter
typedef indexed_modified_transaction_set::index< ancestor_score >::type::iterator modtxscoreiter


void IncrementExtraNonce (CBlock *pblock, const CBlockIndex *pindexPrev, uint64_t nExcessiveBlockSize, unsigned int &nExtraNonce)
 Modify the extranonce in a block. More...
int64_t UpdateTime (CBlockHeader *pblock, const CChainParams &chainParams, const CBlockIndex *pindexPrev)


static const bool DEFAULT_PRINTPRIORITY = false

Typedef Documentation

◆ indexed_modified_transaction_set

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>, boost::multi_index::identity<CTxMemPoolModifiedEntry>, CompareTxMemPoolEntryByAncestorFee> > > indexed_modified_transaction_set

Definition at line 112 of file miner.h.

◆ modtxiter

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

Definition at line 115 of file miner.h.

◆ modtxscoreiter

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

Definition at line 117 of file miner.h.

Function Documentation

◆ IncrementExtraNonce()

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

Modify the extranonce in a block.

Definition at line 546 of file miner.cpp.

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

◆ UpdateTime()

int64_t UpdateTime ( CBlockHeader pblock,
const CChainParams chainParams,
const CBlockIndex pindexPrev 

Definition at line 32 of file miner.cpp.

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

Variable Documentation


const bool DEFAULT_PRINTPRIORITY = false

Definition at line 27 of file miner.h.