-
Notifications
You must be signed in to change notification settings - Fork 983
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
Fix client bug preventing a validator with no self-bonds from voting in governance #2877
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2877 +/- ##
==========================================
+ Coverage 53.44% 55.15% +1.70%
==========================================
Files 310 309 -1
Lines 101574 102694 +1120
==========================================
+ Hits 54288 56638 +2350
+ Misses 47286 46056 -1230 ☔ View full report in Codecov by Sentry. |
crates/sdk/src/tx.rs
Outdated
)); | ||
} | ||
let delegations = if is_validator { | ||
let current_epoch = query_epoch(context.client()).await?; |
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.
dont need to query for the epoch, can you the one from received in the parameters
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.
ah thx, missed that
6d94e5d
to
e6149fa
Compare
e6149fa
to
c1cab03
Compare
c1cab03
to
7278b50
Compare
7278b50
to
5c0fbeb
Compare
* origin/brent/fix-val-voting-no-self-bonds: fmt fix rebase remove unnecessary epoch query changelog: add #2877 fix client bug preventing a validator with no self-bonds from voting fmt changelog: add #2803 fmt + clippy more tests added unit tests fix governance vp remove offline governance, refactor tally types
* origin/brent/fix-val-voting-no-self-bonds: fmt fix rebase remove unnecessary epoch query changelog: add #2877 fix client bug preventing a validator with no self-bonds from voting
Describe your changes
Closes #2865. The client was preventing a validator that has delegations but no self-bonds from submitting a governance proposal vote tx. Now fixed.
Indicate on which release or other PRs this topic is based on
Based on #2803, which is based on v0.32.0.
Checklist before merging to
draft