Bitcoin Core 29.99.0
P2P Digital Currency
Namespaces | Functions
miner.cpp File Reference
#include <node/miner.h>
#include <chain.h>
#include <chainparams.h>
#include <coins.h>
#include <common/args.h>
#include <consensus/amount.h>
#include <consensus/consensus.h>
#include <consensus/merkle.h>
#include <consensus/tx_verify.h>
#include <consensus/validation.h>
#include <deploymentstatus.h>
#include <logging.h>
#include <node/context.h>
#include <node/kernel_notifications.h>
#include <policy/feerate.h>
#include <policy/policy.h>
#include <pow.h>
#include <primitives/transaction.h>
#include <util/moneystr.h>
#include <util/signalinterrupt.h>
#include <util/time.h>
#include <validation.h>
#include <algorithm>
#include <utility>
Include dependency graph for miner.cpp:

Go to the source code of this file.

Namespaces

namespace  node
 

Functions

int64_t node::GetMinimumTime (const CBlockIndex *pindexPrev, const int64_t difficulty_adjustment_interval)
 Get the minimum time a miner should use in the next block. More...
 
int64_t node::UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev)
 
void node::RegenerateCommitments (CBlock &block, ChainstateManager &chainman)
 Update an old GenerateCoinbaseCommitment from CreateNewBlock after the block txs have changed. More...
 
static BlockAssembler::Options node::ClampOptions (BlockAssembler::Options options)
 
void node::ApplyArgsManOptions (const ArgsManager &gArgs, BlockAssembler::Options &options)
 Apply -blockmintxfee and -blockmaxweight options from ArgsManager to BlockAssembler options. More...
 
static int node::UpdatePackagesForAdded (const CTxMemPool &mempool, const CTxMemPool::setEntries &alreadyAdded, indexed_modified_transaction_set &mapModifiedTx) EXCLUSIVE_LOCKS_REQUIRED(mempool.cs)
 Add descendants of given transactions to mapModifiedTx with ancestor state updated assuming given transactions are inBlock. More...
 
void node::AddMerkleRootAndCoinbase (CBlock &block, CTransactionRef coinbase, uint32_t version, uint32_t timestamp, uint32_t nonce)
 
std::unique_ptr< CBlockTemplate > node::WaitAndCreateNewBlock (ChainstateManager &chainman, KernelNotifications &kernel_notifications, CTxMemPool *mempool, const std::unique_ptr< CBlockTemplate > &block_template, const BlockWaitOptions &options, const BlockAssembler::Options &assemble_options)
 Return a new block template when fees rise to a certain threshold or after a new tip; return nullopt if timeout is reached. More...
 
std::optional< BlockRefnode::GetTip (ChainstateManager &chainman)
 
std::optional< BlockRefnode::WaitTipChanged (ChainstateManager &chainman, KernelNotifications &kernel_notifications, const uint256 &current_tip, MillisecondsDouble &timeout)