Generate a new block, without valid proof-of-work.
More...
#include <miner.h>
Generate a new block, without valid proof-of-work.
Definition at line 48 of file miner.h.
◆ BlockAssembler() [1/2]
◆ BlockAssembler() [2/2]
◆ AddToBlock()
Add a tx to the block.
Definition at line 255 of file miner.cpp.
◆ addTxs()
void node::BlockAssembler::addTxs |
( |
| ) |
|
|
private |
Add transactions from the mempool based on individual tx feerate.
addTxs includes transactions paying a fee by ensuring that the partial ordering of transactions is maintained.
That is to say children come after parents, despite having a potentially larger fee.
Definition at line 282 of file miner.cpp.
◆ CheckTx()
bool node::BlockAssembler::CheckTx |
( |
const CTransaction & |
tx | ) |
const |
|
private |
Check the transaction for finality, etc before adding to block.
Definition at line 271 of file miner.cpp.
◆ CreateNewBlock()
Construct a new block template with coinbase to scriptPubKeyIn.
Definition at line 122 of file miner.cpp.
◆ GetMaxGeneratedBlockSize()
uint64_t node::BlockAssembler::GetMaxGeneratedBlockSize |
( |
| ) |
const |
|
inline |
◆ resetBlock()
void node::BlockAssembler::resetBlock |
( |
| ) |
|
|
private |
Clear the block's state and prepare for assembling a new block.
Definition at line 108 of file miner.cpp.
◆ TestTxFits()
bool node::BlockAssembler::TestTxFits |
( |
uint64_t |
txSize, |
|
|
int64_t |
txSigChecks |
|
) |
| const |
|
private |
Test if a new Tx would "fit" in the block.
Definition at line 243 of file miner.cpp.
◆ blockMinFeeRate
CFeeRate node::BlockAssembler::blockMinFeeRate |
|
private |
◆ chainParams
◆ fPrintPriority
const bool node::BlockAssembler::fPrintPriority |
|
private |
◆ m_chainstate
◆ m_last_block_num_txs
std::optional< int64_t > node::BlockAssembler::m_last_block_num_txs {std::nullopt} |
|
static |
◆ m_last_block_size
std::optional< int64_t > node::BlockAssembler::m_last_block_size {std::nullopt} |
|
static |
◆ m_mempool
◆ nBlockSigChecks
uint64_t node::BlockAssembler::nBlockSigChecks |
|
private |
◆ nBlockSize
uint64_t node::BlockAssembler::nBlockSize |
|
private |
◆ nBlockTx
uint64_t node::BlockAssembler::nBlockTx |
|
private |
◆ nFees
Amount node::BlockAssembler::nFees |
|
private |
◆ nHeight
int node::BlockAssembler::nHeight |
|
private |
◆ nLockTimeCutoff
int64_t node::BlockAssembler::nLockTimeCutoff |
|
private |
◆ nMaxGeneratedBlockSigChecks
uint64_t node::BlockAssembler::nMaxGeneratedBlockSigChecks |
|
private |
◆ nMaxGeneratedBlockSize
uint64_t node::BlockAssembler::nMaxGeneratedBlockSize |
|
private |
◆ nMedianTimePast
int64_t node::BlockAssembler::nMedianTimePast |
|
private |
◆ pblocktemplate
The documentation for this class was generated from the following files: