Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Terminology in Block Locators for Consistency with NUM_RECENT_BLO… #3428

Open
wants to merge 4 commits into
base: staging
Choose a base branch
from

Conversation

meetrick
Copy link

@meetrick meetrick commented Nov 1, 2024

…CKS Constant

This PR updates several instances of the term NUM_RECENTS to NUM_RECENT_BLOCKS across block_locators.rs to ensure terminology consistency with the constant NUM_RECENT_BLOCKS. The changes affect both function documentation comments and error messages for clearer understanding and maintenance.

Motivation

The primary motivation behind this PR is to improve code readability and consistency in block_locators.rs by aligning terminology with the defined constant, NUM_RECENT_BLOCKS. Previously, the code used both NUM_RECENTS and NUM_RECENT_BLOCKS, which could lead to confusion among developers. By standardizing on NUM_RECENT_BLOCKS across all function documentation comments and error messages, this PR ensures clearer communication of the code’s intent, reducing the potential for misunderstandings and making maintenance more straightforward. Consistent terminology is especially valuable in collaborative environments, helping developers work more effectively with shared code.

Test Plan

(If you changed any code, please provide clear instructions on how you verified your changes work.)

Related PRs

(Link any related PRs here)

…CKS Constant

This PR updates several instances of the term NUM_RECENTS to NUM_RECENT_BLOCKS
across block_locators.rs to ensure terminology consistency with the constant
NUM_RECENT_BLOCKS. The changes affect both function documentation comments and
error messages for clearer understanding and maintenance.

Signed-off-by: Hwangjae Lee <[email protected]>
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.

3 participants