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 main chain index from db. #1334

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jul 3, 2018

NOTE: It is not possible to downgrade after running this PR. If you plan to test it, please make a copy of your data directory first.

This PR requires #1332.

This removes the main chain index from the database as well as all code related to reading and writing it (other than those in the upgrade paths) since it is no longer used and bumps the database version since it is not possible to downgrade after the main chain index has been removed.


Testing Notes

As of this PR, the expected behavior is that there is a single migration that takes a couple of seconds to complete after which it will no longer be possible to downgrade.

As the warning above notes, if you try to run an older software version after this migration has completed, you will get an error message similar to Unable to start server on [:9108]: the current blockchain database is no longer compatible with this version of the software (4 > 3).


This is work towards #1145.

@davecgh davecgh mentioned this pull request Jul 3, 2018
33 tasks
@davecgh davecgh added this to the 1.3.0 milestone Jul 5, 2018
Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tOK testnet2 miner

Copy link
Member

@jrick jrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no issues with the upgrade

This removes the main chain index from the database as well as all code
related to reading and writing it (other than those in the upgrade
paths) since it is no longer used and bumps the database version since
it is not possible to downgrade after the main chain index has been
removed.
@davecgh davecgh force-pushed the blockchain_remove_mainchain_index branch from d7e0713 to 3ca9def Compare July 9, 2018 16:42
@davecgh davecgh merged commit 3ca9def into decred:master Jul 9, 2018
@davecgh davecgh deleted the blockchain_remove_mainchain_index branch July 9, 2018 17:38
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.

4 participants