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

Method SetClusterQuality

src/txgraph.cpp:1655–1665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1653}
1654
1655void TxGraphImpl::SetClusterQuality(int level, QualityLevel old_quality, ClusterSetIndex old_index, QualityLevel new_quality) noexcept
1656{
1657 Assume(new_quality != QualityLevel::NONE);
1658
1659 // Don't do anything if the quality did not change.
1660 if (old_quality == new_quality) return;
1661 // Extract the cluster from where it currently resides.
1662 auto cluster_ptr = ExtractCluster(level, old_quality, old_index);
1663 // And re-insert it where it belongs.
1664 InsertCluster(level, std::move(cluster_ptr), new_quality);
1665}
1666
1667void TxGraphImpl::DeleteCluster(Cluster& cluster, int level) noexcept
1668{

Callers 5

ApplyRemovalsMethod · 0.80
SplitMethod · 0.80
ApplyDependenciesMethod · 0.80
RelinearizeMethod · 0.80
SetFeeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected