From 777179bc27bf5bb9be28fd3912ceca8153e8cebd Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 26 Mar 2025 22:47:18 -0400 Subject: [PATCH] txgraph: rename group_data in ApplyDependencies --- src/txgraph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/txgraph.cpp b/src/txgraph.cpp index f6d9eec5666..0e7a4c9fdcf 100644 --- a/src/txgraph.cpp +++ b/src/txgraph.cpp @@ -1321,9 +1321,9 @@ void TxGraphImpl::ApplyDependencies(int level) noexcept if (clusterset.m_group_data->m_group_oversized) return; // For each group of to-be-merged Clusters. - for (const auto& group_data : clusterset.m_group_data->m_groups) { + for (const auto& group_entry : clusterset.m_group_data->m_groups) { auto cluster_span = std::span{clusterset.m_group_data->m_group_clusters} - .subspan(group_data.m_cluster_offset, group_data.m_cluster_count); + .subspan(group_entry.m_cluster_offset, group_entry.m_cluster_count); // Pull in all the Clusters that contain dependencies. if (level == 1) { for (Cluster*& cluster : cluster_span) { @@ -1335,7 +1335,7 @@ void TxGraphImpl::ApplyDependencies(int level) noexcept // Actually apply all to-be-added dependencies (all parents and children from this grouping // belong to the same Cluster at this point because of the merging above). auto deps_span = std::span{clusterset.m_deps_to_add} - .subspan(group_data.m_deps_offset, group_data.m_deps_count); + .subspan(group_entry.m_deps_offset, group_entry.m_deps_count); Assume(!deps_span.empty()); const auto& loc = m_entries[deps_span[0].second].m_locator[level]; Assume(loc.IsPresent());