mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-25 22:31:35 +02:00
txgraph: reset quality when merging clusters (bugfix)
This commit is contained in:
@@ -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.
|
// linearization, and post-linearize it to fix up the worst problems with it.
|
||||||
FixLinearization(m_depgraph, m_linearization);
|
FixLinearization(m_depgraph, m_linearization);
|
||||||
PostLinearize(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.
|
// Finally push the changes to graph.m_entries.
|
||||||
Updated(graph);
|
Updated(graph);
|
||||||
|
Reference in New Issue
Block a user