Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251Ref& operator=(const Ref&) = delete;252Ref(const Ref&) = delete;253};254};256/** Construct a new TxGraph with the specified limit on the number of transactions within a cluster,257* and on the sum of transaction sizes within a cluster.258*259* - max_cluster_count cannot exceed MAX_CLUSTER_COUNT_LIMIT.260* - acceptable_cost controls how much linearization optimization work will be performed per261* cluster before they are considered to be of acceptable quality.262* - fallback_order determines how to break tie-breaks between transactions:263* fallback_order(a, b) < 0 means a is "better" than b, and will (in case of ties) be placed264* first. This ordering must be stable over the transactions' lifetimes.265*/266std::unique_ptr<TxGraph> MakeTxGraph(267unsigned max_cluster_count,268uint64_t max_cluster_size,269uint64_t acceptable_cost,270const std::function<std::strong_ordering(const TxGraph::Ref&, const TxGraph::Ref&)>& fallback_order271) noexcept;273#endif // BITCOIN_TXGRAPH_H
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.