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

[FAB-16297] Remove pvtdataStore initiation with non-zero block height #701

Merged
merged 1 commit into from
Feb 20, 2020

Conversation

cendhu
Copy link
Contributor

@cendhu cendhu commented Feb 20, 2020

Type of change

  • Remove unneeded code

Description

This PR removes functions that set the initial state for the pvtdata store when an existing block store has a blockchain but the pvtdata store is empty. This situation is expected to happen when a peer is upgraded directly from version 1.0 to a future version (i.e., 1.0+), and an existing blockchain is present (which was created with version 1.0). Under this scenario, the pvtdata store is brought up to the point as if it has processed existing blocks with no pvtdata.

As we don't expect/support a direct upgrade from version 1.0 to version 2.1, we can remove code that takes care of the above-mentioned scenario.

Additional details

Note that pvtdata feature is available since version 1.1 (experimental) and became stable in version 1.2.

Related issues

FAB-16297

Release Note

Do we need to mention in the release note of v2.1 that the user cannot directly upgrade from version 1.0 to version 2.1?

@cendhu cendhu requested a review from a team as a code owner February 20, 2020 13:26
Remove functions that set the initial state for the pvtdata
store when an existing block store has a blockchain but
the pvtdata store is empty. This situation is expected to
happen when a peer is upgraded directly from version 1.0
to a future version (i.e., 1.0+), and an existing blockchain
is present (which was created with version 1.0).  Under
this scenario, the pvtdata store is brought upto the
point as if it has processed existing blocks with no pvtdata.

As we don't expect/support a direct upgrade from
version 1.0 to version 2.1, we can remove code that takes
care of the above mentioned scenario..

Note that pvt data feature is available since
version 1.1 (experimental) and became stable in version 1.2

Signed-off-by: senthil <cendhu@gmail.com>
@C0rWin C0rWin merged commit 9f26222 into hyperledger:master Feb 20, 2020
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