-
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
R4R: Fix LCD Validator Initialization #2452
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2452 +/- ##
===========================================
+ Coverage 59.69% 59.78% +0.09%
===========================================
Files 136 136
Lines 8405 8405
===========================================
+ Hits 5017 5025 +8
+ Misses 3055 3048 -7
+ Partials 333 332 -1 |
@alexanderbez does it also work with more than 2 validators ? |
@fedekunze yes, this works with any # of validators so long as the proposing validator (in process val) has > 2/3 power which should always be the case for these simple 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.
utACK. cc: @cwgoes let's merge this to unblock the redelegation 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.
utACK
:( I was just reviewing this when it was merged: Generally disagree with the design approach used here through the creation of |
I guess defragmentation can wait further to be addressed as a part of #2449 |
I don't see how what is implemented is further fragmenting what already exists. What is implemented is just a more flexible approach to what is already being done. Granted, yes, the stake data initialization is genesis should live in the staking module. |
@alexanderbez yeah by fragment I just mean stuff ain't in the stake module that should be, the logic looked okay from what I saw, although there are other genesis procedures already existing in staking, and I'd liked if they were merged into a single process flow which is capable of genesis initialization for both LCD tests and Gaia |
ACKed -- this made things confusing for me, so I definitely agree here. |
TestBonding
to create two validators instead of one to provide an example.Throughout this process, I've realized that the existing genesis logic is a bit convoluted, confusing and would warrant some rewriting.
closes: #2339
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: