txgraph: reset quality when merging clusters (bugfix)

This commit is contained in:
Pieter Wuille
2025-04-13 16:25:51 -04:00
parent e72cb20c3f
commit fad0eb091e

View File

@@ -1108,6 +1108,11 @@ void Cluster::ApplyDependencies(TxGraphImpl& graph, std::span<std::pair<GraphInd
// linearization, and post-linearize it to fix up the worst problems with it.
FixLinearization(m_depgraph, m_linearization);
PostLinearize(m_depgraph, m_linearization);
Assume(!NeedsSplitting());
Assume(!IsOversized());
if (IsAcceptable()) {
graph.SetClusterQuality(m_level, m_quality, m_setindex, QualityLevel::NEEDS_RELINEARIZE);
}
// Finally push the changes to graph.m_entries.
Updated(graph);