-
Notifications
You must be signed in to change notification settings - Fork 155
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
Conversation
This is by far the largest and most wide-reaching change I have made to dcrwallet, so thorough review would be appreciated. |
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. |
See #2404 |
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. |
7f4f492
to
bff400e
Compare
PR rebased onto the module version bump and RPC version bump included in the first commit. |
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.
bff400e
to
a83b85b
Compare
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:
--stakepoolcoldextkey
stakepooluserinfo
RPC is removedticketsforaddress
RPC is removed