MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CreateEmptyCluster

Method CreateEmptyCluster

src/txgraph.cpp:707–717  ·  view source on GitHub ↗

Create an empty Cluster of the appropriate implementation for the specified (maximum) tx * count. */

Source from the content-addressed store, hash-verified

705 /** Create an empty Cluster of the appropriate implementation for the specified (maximum) tx
706 * count. */
707 std::unique_ptr<Cluster> CreateEmptyCluster(DepGraphIndex tx_count) noexcept
708 {
709 if (tx_count >= SingletonClusterImpl::MIN_INTENDED_TX_COUNT && tx_count <= SingletonClusterImpl::MAX_TX_COUNT) {
710 return CreateEmptySingletonCluster();
711 }
712 if (tx_count >= GenericClusterImpl::MIN_INTENDED_TX_COUNT && tx_count <= GenericClusterImpl::MAX_TX_COUNT) {
713 return CreateEmptyGenericCluster();
714 }
715 assert(false);
716 return {};
717 }
718
719 // Functions for handling Refs.
720

Callers 1

SplitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected