-
Notifications
You must be signed in to change notification settings - Fork 2
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 binary version to status #578
Conversation
…er to get binary version. Refactored code to remove circular dependency.
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.
I'd be nice if we could also get it in the /status
rpc endpoint (e.g. https://rpc.provenance.io:443/status
), but it just doesn't seem possible without forking cometbft/tendermint.
I did find the https://rpc.provenance.io:443/sync_info
that we manually add to the rpc routes, and it has the binary version in it. So, between the provenanced status
command change in this PR, and that other endpoint, we've got what we need.
I ran the following |
* Added custom nodeInfo type on response, and query for NodeInfo in order to get binary version. Refactored code to remove circular dependency. * Added json tags to lowercase fields. * Removed comment. * Added ChangeLog entry.
…nd (#578) (#579) * Injectable locked coins functionality (#577) * [1619]: Create a GetLockedCoinsFn that can be injected into the view keeper. Also, call the send restriction function during DelegateCoins. * [1619]: Move the send restriction application in SendCoins to after the subUnlockedCoins so that it happens in the same order as InputOutputCoins and also does the most-likely thing to fail first. * [1619]: Wrap all GetLockedCoinsFn such that it only returns positive coin entries. In SpendableCoins, when there's a negative coin, only ignore those rather than claiming there's no spendable balance at all. * [1619]: Tweak the spec doc. * [1619]: Tweak the sanction TestBankSendCoinsUsesSendRestrictionFn test to not do a partial write for the expected-to-fail SendCoins. * [1619]: Refactor TestInputOutputCoinsWithRestrictions and TestSendCoinsWithRestrictions to use a cache context to not get partial updates. * [1619]: Tweak/fix some comments. * [1619]: Move the sendRestriction application in DelegateCoins to after the coins have been subtracted from the source account. * [1619]: Fix test-sim-after-import that started failing at seed 3012 because the last validator was being removed at the end of the last block. So the exported state didn't have any validators causing the import to panic. When that happens on other blocks, it handles it just fine, it was just that it was happening on the very last block that caused the problem. * [1619]: Add changelog entry. * Add binary version to status (#578) * Added custom nodeInfo type on response, and query for NodeInfo in order to get binary version. Refactored code to remove circular dependency. * Added json tags to lowercase fields. * Removed comment. * Added ChangeLog entry. --------- Co-authored-by: Matt Witkowski <[email protected]>
Description
Related: provenance-io/provenance#1578
Update the status command to return the binary version. A new field
binary_version
is present underNodeInfo
.Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change