Bitcoin Core 29.99.0
P2P Digital Currency
Classes | Functions | Variables
txgraph.h File Reference
#include <compare>
#include <cstdint>
#include <memory>
#include <optional>
#include <utility>
#include <vector>
#include <util/feefrac.h>
Include dependency graph for txgraph.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TxGraph
 Data structure to encapsulate fees, sizes, and dependencies for a set of transactions. More...
 
class  TxGraph::BlockBuilder
 Interface returned by GetBlockBuilder. More...
 
class  TxGraph::Ref
 

Functions

std::unique_ptr< TxGraphMakeTxGraph (unsigned max_cluster_count, uint64_t max_cluster_size, uint64_t acceptable_iters) noexcept
 Construct a new TxGraph with the specified limit on the number of transactions within a cluster, and on the sum of transaction sizes within a cluster. More...
 

Variables

static constexpr unsigned MAX_CLUSTER_COUNT_LIMIT {64}
 

Function Documentation

◆ MakeTxGraph()

std::unique_ptr< TxGraph > MakeTxGraph ( unsigned  max_cluster_count,
uint64_t  max_cluster_size,
uint64_t  acceptable_iters 
)
noexcept

Construct a new TxGraph with the specified limit on the number of transactions within a cluster, and on the sum of transaction sizes within a cluster.

max_cluster_count cannot exceed MAX_CLUSTER_COUNT_LIMIT. acceptable_iters controls how many linearization optimization steps will be performed per cluster before they are considered to be of acceptable quality.

Definition at line 2943 of file txgraph.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ MAX_CLUSTER_COUNT_LIMIT

constexpr unsigned MAX_CLUSTER_COUNT_LIMIT {64}
staticconstexpr

Definition at line 17 of file txgraph.h.