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

Remove stakepool operating mode. #2403

Merged
merged 1 commit into from
Sep 8, 2024
Merged

Conversation

jholdstock
Copy link
Member

This completely removes the ability for dcrwallet to operate in legacy stakepool mode.

dcrstakepool was deprecated 4 years ago and we know that stakepool mode is no longer in use because we have ongoing contact with all VSP operators (who have migrated to vspd).

This PR only removes the legacy stakepool server code. It does not touch the stakepool client code, ie. the ability to purchase legacy stakepool tickets.

Breaking changes:

  1. One config flag is removed --stakepoolcoldextkey
  2. stakepooluserinfo RPC is removed
  3. ticketsforaddress RPC is removed

@jholdstock
Copy link
Member Author

jholdstock commented Sep 6, 2024

This is by far the largest and most wide-reaching change I have made to dcrwallet, so thorough review would be appreciated.

@jrick
Copy link
Member

jrick commented Sep 6, 2024

This all looks great, I think all we need to do is bump our major version first. Unfortunately that may mean a bit of conflicts after you rebase over that.

@jrick
Copy link
Member

jrick commented Sep 6, 2024

See #2404

@jrick
Copy link
Member

jrick commented Sep 6, 2024

json-rpc server version (top of internal/rpc/jsonrpc/methods.go) will need to be bumped to major version 10.

this also affects upstream json-rpc consumers who check this even though they don't use the removed method, so they will need heads up.

@jholdstock
Copy link
Member Author

PR rebased onto the module version bump and RPC version bump included in the first commit.

@jrick
Copy link
Member

jrick commented Sep 7, 2024

Looks good, you can squash.

Stakepool mode was enabled using the `--stakepoolcoldextkey` flag which
has been removed, and with dcrwallet unable to operate in this mode the
`stakepooluserinfo` and `ticketsforaddress` RPCs become redundant so
have also been removed.

RPC server version bumped to 10.0.0.

All functionality which previously depended on the StakeStore has been
removed, therefore the StakeStore itself can be removed.

Newly created databases will no longer be initialized with the buckets
used by StakeStore, and a database upgrade which changed the data format
in one of those buckets has been updated so it no longer attempts to
make that change.
@jrick jrick merged commit a83b85b into decred:master Sep 8, 2024
2 checks passed
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.

2 participants