-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
BaseApp.Info should return a value for AppVersion #7487
Comments
This must be linked to the binary version. So how about using a binary versioning and use |
Had a quick chat with @technicallyty, so as per #7487 (comment), we'll have a new key/value pair in On each upgrade, x/upgrade will automatically increment the version inside the store. If the app developer wants to override this value (for whatever reason), they can always just call Does that sound like a good direction? |
Yes it does @AmauryM |
If this values are not used, how about renaming them? They may sound confusing, eg:
|
Re the For the version bump, how about this (not sure if this is how you think about it @AmauryM ):
|
Where does I more or less agree about keeping the upgrade keeper version private though - although it should be possible to set a different initial version for migrating from chain restarts to x/upgrade. |
@aaronc With
So a rename from |
The field name comes from tendermint so out of scope here FYI |
Summary of Bug
ResponseInfo does not contain values for the app version fields.
There is an expectation from Tendermint that the ResponseInfo.Version contains the software version, and that ResponseInfo.AppVersion contains a "protocol version". The software version should be a semver string, the protocol version should be an integer that increments with every breaking change.
Currently, the SDK returns neither, so they are both left blank.
These are really just nice to haves and informative, but the AppVersion is included in block headers. Since these are currently omitted, the AppVersion defaults to 0 and is actually omitted in the JSON representation of blocks.
Version
I think all, but certainly master.
Steps to Reproduce
Run an SDK node.
curl localhost:26657/status
. Seeapp: 0
field. In this endpoint it shows as zero but if you look at a block, the app field will be missing altogether from version.For Admin Use
The text was updated successfully, but these errors were encountered: