Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a new major version for the
github.com/decred/dcrd/database
module, namely v3.The current code on master already has breaking changes compared to the last released version of the database module (v2.0.2) (for example, the
Error
structure switched theErrorCode
member forErr
). Therefore, a new major version bump is required before releasing the next version of this module.The first commit "locks" local users of the database module to the last available development version of the module (the one in the current tip of the master branch) and removes replace directives, so that the next commit can perform the version bump of the database module without requiring changes in client code.
A future PR will switch all client code to database/v3. This needs to be done separately (instead of on a single PR) because otherwise
go mod download
will fail and CI tests won't pass (due to the first database/v3 commit not yet being present in a branch of the dcrd repository).