-
Notifications
You must be signed in to change notification settings - Fork 981
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
[pos] Add epoch argument to vp::pos::rewards #4196
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4196 +/- ##
==========================================
- Coverage 74.46% 74.42% -0.05%
==========================================
Files 342 342
Lines 107773 107826 +53
==========================================
- Hits 80257 80252 -5
- Misses 27516 27574 +58 ☔ View full report in Codecov by Sentry. |
Testing that this behaves as expected for a validator that claimed rewards in epoch 51:
|
…re as of beginning of epoch
Of particular note, this code accounts for the
|
Mind adding some unit tests here to demonstrate the behavior too @joel-u410? |
For sure, I can look into that. |
Describe your changes
This adds an
epoch
argument to therewards()
function invp::pos
. It does require a RPC node update in order to work, but it's backwards compatible. Tested with previous build ofnamadan
and results are same as before:With node on
main
and client on this branch:With both client and node on this branch:
Checklist before merging
breaking::
labelsnamada-docs
reponamada-indexer
ornamada-masp-indexer
, a corresponding PR is opened in that repo