Skip to content

frontend, common: comment cleanups - #597

Merged
LarryRuane merged 2 commits into
masterfrom
fix/comment-cleanups
Aug 27, 2026
Merged

frontend, common: comment cleanups#597
LarryRuane merged 2 commits into
masterfrom
fix/comment-cleanups

Conversation

@LarryRuane

Copy link
Copy Markdown
Collaborator

Two comment-only cleanups for the release. No behavior change; gofmt clean, full test suite passes.

frontend: shorten two comments to one line each — trims the two multi-line comments added by #595 down to one line each. The reasoning they carried, that codes.Unknown is the wrong code for a request the caller must change and that wallets back off and retry on it, is already stated in full in the CHANGELOG entry #595 added, so nothing is lost.

frontend, common: name the right functions in two doc comments — both comments named a function other than the one they document, so go doc and every editor that reads doc comments attributed them to nothing. GetTaddressTransactions was still documented as GetTaddressTxids, the name it carried before 8c4c83a split the deprecated RPC into its own wrapper; its "NB, this method is misnamed" note goes away with the rename, since it described GetTaddressTxids, which is still present and still carries that explanation in full on the wrapper 90 lines below. addBlockActive was documented as DarksideAddBlock, a name that no longer exists anywhere in the tree.

Reported in #524 and #526, both of which conflicted with master and are closed in favor of this.

Larry Ruane and others added 2 commits August 27, 2026 11:48
The reasoning they carried -- why codes.Unknown is the wrong code for a
request the caller must change, and that wallets back off and retry on
it -- is already stated in full in the CHANGELOG entry this branch adds,
so nothing is lost by leaving one line at each site.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DeK7pepamvANHSUUZWBpm
Both comments named a function other than the one they document, so
`go doc` and every editor that reads doc comments attributed them to
nothing.

`GetTaddressTransactions` was still documented as `GetTaddressTxids`,
the name it carried before 8c4c83a split the deprecated RPC out into
its own wrapper. Its "NB, this method is misnamed" note goes away with
the rename: it described `GetTaddressTxids`, which is still deprecated,
still present, and still carries that explanation in full -- along with
a link to #426 -- on the wrapper 90 lines below.

`addBlockActive` was documented as `DarksideAddBlock`, a name that no
longer exists anywhere in the tree.

Reported in #524 and #526.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DeK7pepamvANHSUUZWBpm
@LarryRuane
LarryRuane merged commit c9a6f0d into master Aug 27, 2026
5 checks passed
@LarryRuane
LarryRuane deleted the fix/comment-cleanups branch August 27, 2026 17:55
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.

1 participant