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

multi: Bump major version and update dcrd dependencies #2189

Merged
merged 3 commits into from Nov 2, 2022

Conversation

matheusd
Copy link
Member

@matheusd matheusd commented Nov 2, 2022

This PR updates the major version of the decred.org/dcrwallet module to version 3 and updates all dependencies of currently wip modules from dcrd to their corresponding major versions.

This is needed to keep the wallet master branch in sync with the current master dcrd.

This increases the major version of the decred.org/dcrwallet module to
version 3. This is needed to prepare for future changes which will be
breaking changes from a semver point of view.

All references to packages in the decred.org/dcrwallet/v2 module are
changed to their respective v3 versions.
This commit updates the dcrd packages that have had a bump in their
major version to their current (non-released) wip versions. The
following modules/packages were updated:

blockchain/stake => v4 to v5
blockchain => v4 to v5
gcs => v3 to v4
rpc/jsonrpc/types => v3 to v4
rpcclient => v7 to v8

The only significant change API-wise that affected dcrwallet was the
removal of the extra arguments to stake.DetermineTxType and
stake.IsRRTx/IsSSGen. The determination of whether to check for the
additional rules pertaining to treasury and auto revocation agendas is
done by the transaction version field of the transaction itself, so that
eliminates the need for the additional flags. The official wallet
software never produced transactions that did not follow this standard,
therefore this is safe to do.

The replace directives added to go.mod are needed due to the fact that
some of the packages in dcrd (gcs/v4 and rpcclient/v8) depend on
blockchain/stake/v5 and their own respective go.mod are set to require
stake v5.0.0 (instead of a pre-release version).
Found via golangci-lint --enable=unused
@jrick
Copy link
Member

jrick commented Nov 2, 2022

this looks good at a first glance. i'll give it some more testing today.

@jrick jrick merged commit 566eff8 into decred:master Nov 2, 2022
@matheusd matheusd deleted the update-dcrd-dcrw branch November 2, 2022 18:34
@matheusd matheusd mentioned this pull request Nov 14, 2022
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.

None yet

2 participants