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
rename Accum -> ProposerPriority #2932
Conversation
- rename fields, methods, comments, tests
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.
💎
Merging in develop shortly to resolve the conflicts. |
a72fe11
to
c810204
Compare
@@ -275,7 +275,7 @@ func randPubKey() crypto.PubKey { | |||
|
|||
func randValidator_() *Validator { | |||
val := NewValidator(randPubKey(), cmn.RandInt64()) | |||
val.Accum = cmn.RandInt64() | |||
val.ProposerPriority = cmn.RandInt64() % MaxTotalVotingPower |
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 had to change this too (unrelated to the renaming). Without this, TestValidatorSetBasic
would panic (and fail) on rare occasions. Namely, if cmn.RandInt64() > MaxTotalVotingPower
.
Codecov Report
@@ Coverage Diff @@
## develop #2932 +/- ##
==========================================
Coverage ? 62.76%
==========================================
Files ? 212
Lines ? 17294
Branches ? 0
==========================================
Hits ? 10855
Misses ? 5524
Partials ? 915
|
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.
Awesome!
ref #2915