Skip to content

Fix the view calculation bug #1820

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

Merged
merged 5 commits into from
Oct 22, 2019
Merged

Fix the view calculation bug #1820

merged 5 commits into from
Oct 22, 2019

Conversation

majecty
Copy link
Contributor

@majecty majecty commented Oct 18, 2019

This PR fixes #1815, #1816, and #1817

@majecty majecty requested a review from foriequal0 October 18, 2019 08:21
@majecty majecty force-pushed the f/view branch 2 times, most recently from 1754b09 to 49ea602 Compare October 22, 2019 06:43
foriequal0
foriequal0 previously approved these changes Oct 22, 2019
When the data structure of data that is saved in the KVDB is changed,
CodeChain should migrate the data. To identify the stored data
structure, we need to keep a version number. This commit adds code to
save and load a version number. To make the DB easier to manage, this
code saves versions in the same column with the same prefix.
…lock

Tendermint worker's last_confirmed_view is used for two purposes. One
is the previous height's finalized view, and the other one is the
current height's finalized view. This commit is part of splitting the
last_confirmed_view variable.
Tendermint worker's last_confirmed_view is used for two purposes. One
is the previous height's finalized view, and the other one is the
current height's finalized view. This commit is part of splitting the
last_confirmed_view variable.
author_view: view when the block was created.
finalized_view: view when the block was finalized.
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.

Versioning Tendermint Backup
2 participants