-
Notifications
You must be signed in to change notification settings - Fork 115
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
Compare protocol versions according to SemVer 2.0.0 #3360
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3360 +/- ##
==========================================
- Coverage 66.09% 65.97% -0.13%
==========================================
Files 370 370
Lines 33236 33236
==========================================
- Hits 21967 21926 -41
- Misses 8028 8081 +53
+ Partials 3241 3229 -12
Continue to review full report at Codecov.
|
c3871a6
to
4bdfc4b
Compare
@@ -59,7 +59,7 @@ func (sp *stateProvider) State(ctx context.Context, height uint64) (tmstate.Stat | |||
InitialHeight: sp.genesisDocument.InitialHeight, | |||
} | |||
// XXX: This will fail in case an upgrade happened in-between. | |||
state.Version.Consensus.App = version.ConsensusProtocol.ToU64() | |||
state.Version.Consensus.App = version.TendermintAppVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase and don't forget updates due to #3361 (comment). |
Include it in Developer Documentation's index and GitBook's sidebar.
This should be useful for comparint protocol versions for backward-incompatible changes.
Since we bumped the protocol versions to version 1.0.0 with the release of Oasis Core 20.10, we also need to modify how we compare and detect backward-incompatible changes to follow SemVer 2.0.0 rules. From now onwards, only a change in a protocol's major version signifies a backward-incompatible change. go/common/version: Introduce TendermintAppVersion variable which is the Tendermint ABCI application's version and should be compatible with Tendermint's version checks.
It is no longer used. runtime/src/common/version.rs: Remove corresponding Version's major_minor() method.
4bdfc4b
to
fb701bd
Compare
Done. |
Since we bumped the protocol versions to version 1.0.0 with the release of Oasis Core 20.10, we also need to modify how we compare and detect backward-incompatible changes to follow SemVer 2.0.0 rules.
From now onwards, only a change in a protocol's major version signifies a backward-incompatible change.
NOTE: The change in this PR would require a major bump in runtime committee protocol's version, but since it was already bumped in #3346, we don't need to bump it again.