From 333316f6bee84cf6947707f006ec4d514ef3f7ec Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Fri, 20 Mar 2026 16:48:28 +0100 Subject: [PATCH] doc: Fix typo "eviction criterium" -> "eviction criterion" Also, clarify round-trip time to mean round-trip duration. --- src/net.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/net.h b/src/net.h index d923e7b28fe..5f19074bddc 100644 --- a/src/net.h +++ b/src/net.h @@ -876,24 +876,24 @@ public: * eviction logic. */ std::atomic_bool m_bloom_filter_loaded{false}; - /** UNIX epoch time of the last block received from this peer that we had - * not yet seen (e.g. not already received from another peer), that passed - * preliminary validity checks and was saved to disk, even if we don't - * connect the block or it eventually fails connection. Used as an inbound - * peer eviction criterium in CConnman::AttemptToEvictConnection. */ + /// UNIX epoch time of the last block received from this peer that we had + /// not yet seen (e.g. not already received from another peer), that passed + /// preliminary validity checks and was saved to disk, even if we don't + /// connect the block or it eventually fails to connect. Used as an inbound + /// peer eviction criterion in CConnman::AttemptToEvictConnection. std::atomic m_last_block_time{0s}; - /** UNIX epoch time of the last transaction received from this peer that we - * had not yet seen (e.g. not already received from another peer) and that - * was accepted into our mempool. Used as an inbound peer eviction criterium - * in CConnman::AttemptToEvictConnection. */ + /// UNIX epoch time of the last transaction received from this peer that we + /// had not yet seen (e.g. not already received from another peer) and that + /// was accepted into our mempool. Used as an inbound peer eviction criterion + /// in CConnman::AttemptToEvictConnection. std::atomic m_last_tx_time{0s}; - /** Last measured round-trip time. Used only for RPC/GUI stats/debugging.*/ + /// Last measured round-trip duration. Used only for stats. std::atomic m_last_ping_time{0us}; - /** Lowest measured round-trip time. Used as an inbound peer eviction - * criterium in CConnman::AttemptToEvictConnection. */ + /// Lowest measured round-trip duration. Used as an inbound peer eviction + /// criterion in CConnman::AttemptToEvictConnection. std::atomic m_min_ping_time{std::chrono::microseconds::max()}; CNode(NodeId id, @@ -980,7 +980,7 @@ public: */ std::string DisconnectMsg() const; - /** A ping-pong round trip has completed successfully. Update latest and minimum ping times. */ + /// A ping-pong round trip has completed successfully. Update latest and minimum ping durations. void PongReceived(std::chrono::microseconds ping_time) { m_last_ping_time = ping_time; m_min_ping_time = std::min(m_min_ping_time.load(), ping_time);