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

blockchain: Remove several unused error returns. #3110

Merged
merged 6 commits into from
May 9, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented May 4, 2023

This consists of a series of commits to remove unused error returns from several internal blockchain methods one at a time for ease of review.

The error return is removed from the following methods:

  • blockchain.nextThresholdState
  • blockchain.stateLastChanged
  • blockchain.deploymentState
  • blockchain.maxBlockSize
  • blockchain.calcNextRequiredStakeDifficultyV1
  • calcNextRequiredStakeDifficulty

davecgh added 6 commits May 3, 2023 23:03
This removes the error return from the nextThresholdState method since
it is no longer used due to previous updates.
This removes the error return from the stateLastChanged method since it
is no longer used due to previous updates.
This removes the error return from the deploymentState method since it
is no longer used due to previous updates.
This removes the error return from the maxBlockSize method since it is
no longer used due to previous updates.
This removes the error return from the calcNextRequiredStakeDifficultyV1
method since it is no longer used due to previous updates.
This removes the error return from the calcNextRequiredStakeDifficulty
method since it is no longer used due to previous updates.
@davecgh davecgh added this to the 1.8.0 milestone May 4, 2023
@davecgh davecgh merged commit 3fffa18 into decred:master May 9, 2023
@davecgh davecgh deleted the blockchain_unused_err branch May 9, 2023 14:27
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