Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

state database versioning #7401

Merged
merged 3 commits into from
May 28, 2019
Merged

state database versioning #7401

merged 3 commits into from
May 28, 2019

Conversation

b1bart
Copy link
Contributor

@b1bart b1bart commented May 24, 2019

Change Description

add support for a simple header in the state database which defines versioning for the application level data. The intent is to have a more direct informative message when the expectations for in-memory layout of application data has changed due to explicit changes to the structure(s). This is in contrast to the implicit changes to in-memory layout that we attempt to catch at the chainbase level by detecting compiler/OS/optimization differences.

For the first version of this, any existing un-versioned state database should be automatically upgraded. Future versions will inform users to upgrade via snapshots or replay when the version in the in-memory file is no longer compatible with the code.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

…ersioning for the application level data. The intent is to have a more direct informative message when the expectations for in-memory layout of application data has changed due to explicit changes to the structure (as opposed to the implicit change detected by our chainbase level checks)
@b1bart b1bart mentioned this pull request May 24, 2019
5 tasks
@b1bart b1bart merged commit 0ca3ad4 into develop May 28, 2019
@b1bart b1bart deleted the feature/state_database_versioning branch May 28, 2019 14:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants