5#ifndef BITCOIN_NODE_BLOCKFITTER_H
6#define BITCOIN_NODE_BLOCKFITTER_H
49 void addTx(
size_t txSize, int64_t txSigChecks,
Amount txFee);
57 bool testTxFits(uint64_t txSize, int64_t txSigChecks)
const;
Fee rate in satoshis per kilobyte: Amount / kB.
Check for block limits when adding transactions.
bool isBelowBlockMinFeeRate(const CFeeRate &txFeeRate) const
static constexpr uint64_t COINBASE_RESERVED_SIGCHECKS
uint64_t nMaxGeneratedBlockSigChecks
bool testTxFits(uint64_t txSize, int64_t txSigChecks) const
Test if a new Tx would "fit" in the block.
void resetBlock()
Clear the block's state and prepare for assembling a new block.
BlockFitter(const Options &options)
uint64_t getMaxGeneratedBlockSize() const
uint64_t nMaxGeneratedBlockSize
void removeTxUnchecked(size_t txSize, int64_t txSigChecks, Amount txFee)
Remove accounting for this tx.
void addTx(size_t txSize, int64_t txSigChecks, Amount txFee)
Account for this tx.
static constexpr uint64_t COINBASE_RESERVED_SIZE
uint64_t nExcessiveBlockSize
uint64_t nMaxGeneratedBlockSize