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 typos in codebase #5349

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Parikalp-Bhardwaj
Copy link

Description

Changes Made

  • Corrected numerous typos throughout the codebase.
  • Ensured that no changes were made to database column names, function signatures, or other critical identifiers to prevent any potential issues.

Note: All changes are focused on comments, variable names, and documentation where the typos were present.

Related Issue

@CLAassistant
Copy link

CLAassistant commented Oct 21, 2024

CLA assistant check
All committers have signed the CLA.

@obycode obycode mentioned this pull request Oct 21, 2024
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

Thanks for your PR! I've reviewed half of the files changed so far. Will come back to the rest later.

libsigner/src/http.rs Outdated Show resolved Hide resolved
libsigner/src/http.rs Outdated Show resolved Hide resolved
stacks-signer/src/client/stacks_client.rs Outdated Show resolved Hide resolved
@@ -977,7 +977,7 @@ impl SpvClient {

// contiguous?
if block_headers[0].header.prev_blockhash != parent_header.header.bitcoin_hash() {
warn!("Received discontiguous headers at height {}: we have parent {:?} ({}), but were given {:?} ({})",
warn!("Received discontinuous headers at height {}: we have parent {:?} ({}), but were given {:?} ({})",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think "discontiguous" is correct here.

stackslib/src/burnchains/bitcoin/spv.rs Outdated Show resolved Hide resolved
@@ -3045,7 +3045,7 @@ impl StacksChainState {
}

if signed_microblocks[0].header.sequence != 0 {
// discontiguous -- must start with seq 0
// discontinuous -- must start with seq 0
Copy link
Contributor

Choose a reason for hiding this comment

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

All uses of "discontiguous" in this file are correct.

stackslib/src/chainstate/stacks/db/transactions.rs Outdated Show resolved Hide resolved
stackslib/src/chainstate/stacks/db/transactions.rs Outdated Show resolved Hide resolved
@@ -115,7 +115,7 @@ impl StacksChainState {
affirmation_weight: u64,
) -> Result<(), Error> {
let StacksBlockHeaderTypes::Epoch2(header) = &tip_info.anchored_header else {
return Err(Error::InvalidChildOfNakomotoBlock);
return Err(Error::InvalidChildOfNakamotoBlock);
Copy link
Contributor

Choose a reason for hiding this comment

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

See my comment in stackslib/src/chainstate/stacks/mod.rs.

@@ -126,7 +126,7 @@ pub enum Error {
MinerAborted,
ChannelClosed(String),
/// This error indicates a Epoch2 block attempted to build off of a Nakamoto block.
InvalidChildOfNakomotoBlock,
InvalidChildOfNakamotoBlock,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if it's safe to change this or if it will be consensus-breaking. I'll need to come back to this.

@obycode
Copy link
Contributor

obycode commented Oct 21, 2024

Please resolve merge conflicts.

@saralab saralab requested a review from jferrant October 24, 2024 14:43
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