-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Sort all msg.GetSignBytes #1563
Conversation
- call SortJSON before return JSON bytes to guarantee alphabetic ordering
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.
Can we avoid the duplication by adding server.MustSortJSON
which panics on error?
Also, every msg.GetSignBytes
function should be sorted.
- call MustSortJSON before return JSON bytes to guarantee alphabetic ordering - moved SortJSON and MustSortJSON to types package to avoid cyclic package dep
Thanks for the review @cwgoes. Now, all |
Codecov Report
@@ Coverage Diff @@
## develop #1563 +/- ##
===========================================
- Coverage 64.46% 64.37% -0.09%
===========================================
Files 118 119 +1
Lines 6495 6510 +15
===========================================
+ Hits 4187 4191 +4
- Misses 2060 2068 +8
- Partials 248 251 +3 |
Looks good! Last step is to go through the PR checkboxes then we should be good to merge |
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.
hmm why cli tests failing?
Not sure. Looks unrelated to this change 🤔 Merged in latest develop. Let's see (tomorrow) 😴 |
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.
utACK
Call
MustSortJSON
before return JSON bytes to guarantee alphabetic ordering on all msgs.related discussion: tendermint/go-amino#171 (comment)
resolves #1550