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

Method SplitAll

src/txgraph.cpp:1841–1854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1839}
1840
1841void TxGraphImpl::SplitAll(int up_to_level) noexcept
1842{
1843 Assume(up_to_level >= 0 && up_to_level <= GetTopLevel());
1844 // Before splitting all Cluster, first make sure all removals are applied.
1845 ApplyRemovals(up_to_level);
1846 for (int level = 0; level <= up_to_level; ++level) {
1847 for (auto quality : {QualityLevel::NEEDS_SPLIT_FIX, QualityLevel::NEEDS_SPLIT}) {
1848 auto& queue = GetClusterSet(level).m_clusters[int(quality)];
1849 while (!queue.empty()) {
1850 Split(*queue.back().get(), level);
1851 }
1852 }
1853 }
1854}
1855
1856void TxGraphImpl::GroupClusters(int level) noexcept
1857{

Callers

nothing calls this directly

Calls 4

SplitFunction · 0.50
emptyMethod · 0.45
getMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected