-
Notifications
You must be signed in to change notification settings - Fork 4
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
track staking events history; add staking rewards to validator history #752
Conversation
05c599f
to
80f41a2
Compare
if ev, exists := stakingRewards[addr]; exists { | ||
batch.Queue(queries.ValidatorStakingRewardUpdate, | ||
vID.String(), | ||
epoch.epoch-1, // previous epoch |
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 you affirm that this is all right
- staking rewards appear in the first block of the next epoch
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.
Hm I asked a follow up in core-platform but as of now, the e2e integration tests show that the staking rewards are indeed populated in the first block of the next epoch. However, I'm not sure if there are any failure edge cases where the rewards might be populated in a subsequent block; will ask around.
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.
also confirmed that the staking rewards don't show up in the second block of the epochs in the e2e 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.
thanks for the changes
fc6fb25
to
1dd6b6a
Compare
changelog nit update e2e test files improve error messages remove check for second block in epoch
1dd6b6a
to
b481846
Compare
This PR includes a chunk of the changes necessary for staking rewards that would be nice to include in the upcoming reindex release. There are two changes: