From c7d5dcaa61471cc26c3fb1772dfc4c82b20e1f9d Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 26 Mar 2025 22:57:41 -0400 Subject: [PATCH] clusterlin: fix typos --- src/cluster_linearize.h | 2 +- src/txgraph.cpp | 10 +++++----- src/txgraph.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cluster_linearize.h b/src/cluster_linearize.h index b01daedf4bf..ad6f1a76032 100644 --- a/src/cluster_linearize.h +++ b/src/cluster_linearize.h @@ -1367,7 +1367,7 @@ void FixLinearization(const DepGraph& depgraph, std::span 0); auto to_swap = linearization[len - 1 - (j - 1)]; place_before.Reset(to_swap); diff --git a/src/txgraph.cpp b/src/txgraph.cpp index 0e7a4c9fdcf..8fb5300a664 100644 --- a/src/txgraph.cpp +++ b/src/txgraph.cpp @@ -335,7 +335,7 @@ public: // Simple helper functions. - /** Swap the Entrys referred to by a and b. */ + /** Swap the Entry referred to by a and the one referred to by b. */ void SwapIndexes(GraphIndex a, GraphIndex b) noexcept; /** If idx exists in the specified level ClusterSet (explicitly, or in the level below and not * removed), return the Cluster it is in. Otherwise, return nullptr. */ @@ -408,8 +408,8 @@ public: // Functions related to various normalization/application steps. /** Get rid of unlinked Entry objects in m_entries, if possible (this changes the GraphIndex - * values for remaining Entrys, so this only does something when no to-be-applied operations - * or staged removals referring to GraphIndexes remain). */ + * values for remaining Entry objects, so this only does something when no to-be-applied + * operations or staged removals referring to GraphIndexes remain). */ void Compact() noexcept; /** If cluster is not in staging, copy it there, and return a pointer to it. This has no * effect if only a main graph exists, but if staging exists this modifies the locators of its @@ -505,7 +505,7 @@ void TxGraphImpl::ClearLocator(int level, GraphIndex idx) noexcept void Cluster::Updated(TxGraphImpl& graph) noexcept { - // Update all the Locators for this Cluster's Entrys. + // Update all the Locators for this Cluster's Entry objects. for (DepGraphIndex idx : m_linearization) { auto& entry = graph.m_entries[m_mapping[idx]]; entry.m_locator[m_level].SetPresent(this, idx); @@ -1937,7 +1937,7 @@ void Cluster::SanityCheck(const TxGraphImpl& graph, int level) const assert(m_depgraph.IsConnected(linchunking.GetChunk(0).transactions)); } } - // Verify that each element of m_depgraph occured in m_linearization. + // Verify that each element of m_depgraph occurred in m_linearization. assert(m_done == m_depgraph.Positions()); } diff --git a/src/txgraph.h b/src/txgraph.h index eba983cb5b9..803696440c2 100644 --- a/src/txgraph.h +++ b/src/txgraph.h @@ -99,7 +99,7 @@ public: /** Create a staging graph (which cannot exist already). This acts as if a full copy of * the transaction graph is made, upon which further modifications are made. This copy can * be inspected, and then either discarded, or the main graph can be replaced by it by - * commiting it. */ + * committing it. */ virtual void StartStaging() noexcept = 0; /** Discard the existing active staging graph (which must exist). */ virtual void AbortStaging() noexcept = 0;