Check for block limits when adding transactions.
More...
#include <blockfitter.h>
Check for block limits when adding transactions.
Definition at line 17 of file blockfitter.h.
◆ BlockFitter() [1/2]
node::BlockFitter::BlockFitter |
( |
const Options & |
options | ) |
|
◆ BlockFitter() [2/2]
node::BlockFitter::BlockFitter |
( |
const Config & |
config | ) |
|
◆ addTx()
void node::BlockFitter::addTx |
( |
size_t |
txSize, |
|
|
int64_t |
txSigChecks, |
|
|
Amount |
txFee |
|
) |
| |
◆ getMaxGeneratedBlockSize()
uint64_t node::BlockFitter::getMaxGeneratedBlockSize |
( |
| ) |
const |
|
inline |
◆ isBelowBlockMinFeeRate()
bool node::BlockFitter::isBelowBlockMinFeeRate |
( |
const CFeeRate & |
txFeeRate | ) |
const |
◆ removeTxUnchecked()
void node::BlockFitter::removeTxUnchecked |
( |
size_t |
txSize, |
|
|
int64_t |
txSigChecks, |
|
|
Amount |
txFee |
|
) |
| |
Remove accounting for this tx.
No check is done that the tx was previously added to the block fitter.
Definition at line 83 of file blockfitter.cpp.
◆ resetBlock()
void node::BlockFitter::resetBlock |
( |
| ) |
|
Clear the block's state and prepare for assembling a new block.
Definition at line 66 of file blockfitter.cpp.
◆ testTxFits()
bool node::BlockFitter::testTxFits |
( |
uint64_t |
txSize, |
|
|
int64_t |
txSigChecks |
|
) |
| const |
Test if a new Tx would "fit" in the block.
Definition at line 91 of file blockfitter.cpp.
◆ blockMinFeeRate
CFeeRate node::BlockFitter::blockMinFeeRate |
|
private |
◆ COINBASE_RESERVED_SIGCHECKS
constexpr uint64_t node::BlockFitter::COINBASE_RESERVED_SIGCHECKS {100} |
|
staticconstexpr |
◆ COINBASE_RESERVED_SIZE
constexpr uint64_t node::BlockFitter::COINBASE_RESERVED_SIZE {1000} |
|
staticconstexpr |
◆ nBlockSigChecks
uint64_t node::BlockFitter::nBlockSigChecks |
◆ nBlockSize
uint64_t node::BlockFitter::nBlockSize |
◆ nBlockTx
uint64_t node::BlockFitter::nBlockTx |
◆ nFees
Amount node::BlockFitter::nFees |
◆ nMaxGeneratedBlockSigChecks
uint64_t node::BlockFitter::nMaxGeneratedBlockSigChecks |
|
private |
◆ nMaxGeneratedBlockSize
uint64_t node::BlockFitter::nMaxGeneratedBlockSize |
|
private |
The documentation for this class was generated from the following files: