-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add version info to common package and -version flag to CLI #128
Conversation
|
||
// RosettaAPIVersion represents the Rosetta API version with which the | ||
// Oasis Core Rosetta Gateway is guaranteed to be compatible with. | ||
RosettaAPIVersion = "1.4.1" |
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.
This shouldn't be hard-coded in the future, see #129.
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.
You should also make https://github.com/oasisprotocol/oasis-core-rosetta-gateway/blob/master/services/network.go#L135 use the RosettaAPIVersion specified here :)
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.
You should also make https://github.com/oasisprotocol/oasis-core-rosetta-gateway/blob/master/services/network.go#L135 use the RosettaAPIVersion specified here :)
Good catch, fixed.
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.
Cool! Maybe it would be a good idea to also include the Oasis Core version? Well it would actually make more sense to include the client protocol version once oasisprotocol/oasis-core#1861 is done.
services: Use Rosetta API version defined in common package.
This should keep the number of statements in the main() function <50.
2b84c45
to
f3cbbbe
Compare
Agreed with adding the client protocol version once that is implemented in Oasis Core. I tried adding the Oasis Core version by obtaining its value from the |
Implemented in #134.
Filled #135. |
No description provided.