Skip to content

docs(clock): trim verbose gossip-disparity doc comments#9631

Open
lodekeeper wants to merge 1 commit into
ChainSafe:unstablefrom
lodekeeper:docs/trim-gossip-disparity-clock-comments
Open

docs(clock): trim verbose gossip-disparity doc comments#9631
lodekeeper wants to merge 1 commit into
ChainSafe:unstablefrom
lodekeeper:docs/trim-gossip-disparity-clock-comments

Conversation

@lodekeeper

Copy link
Copy Markdown
Contributor

Summary

Trims two over-explained gossip-disparity doc comments in packages/beacon-node/src/util/clock.ts down to the essential spec reference:

  • Clock.currentSlotWithGossipDisparity getter
  • Clock.isCurrentSlotGivenGossipDisparity

Both restated the <= vs strict-< boundary at length. The trimmed form keeps the spec pointer (phase0/p2p-interface.md rejects future messages with strict <, hence <=) and drops the redundant re-explanation.

Motivation

These comments were ported verbatim into the lodestar-z Zig clock (ChainSafe/lodestar-z#463), where reviewers flagged them as verbose/noisy. Trimming the TS source keeps future ports lean.

Comment-only change — no behavior change.

Trim the over-explained `<=` / strict-`<` gossip-disparity doc comments on `currentSlotWithGossipDisparity` and `isCurrentSlotGivenGossipDisparity` down to the essential spec reference. Flagged during the lodestar-z clock port (ChainSafe/lodestar-z#463), where they were ported verbatim and read as noise. No code change.

🤖 Generated with AI assistance

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lodekeeper
lodekeeper requested a review from a team as a code owner July 9, 2026 15:44

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies the JSDoc comments in packages/beacon-node/src/util/clock.ts regarding the gossip clock disparity and spec references, making them more concise. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@nflaig nflaig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spiral-ladder do you like this more?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants