Skip to content
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

Always generate a TotalRewardEvent even if empty #2673

Merged
merged 1 commit into from Mar 1, 2022

Conversation

erikd
Copy link
Contributor

@erikd erikd commented Feb 28, 2022

No description provided.

Code in `db-sync` depends on this event arriving even if its empty.
Copy link
Contributor

@TimSheard TimSheard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a reasonable request. One wouldn't want to write incrmental changes (since most of those are empty) but the final epoch total should be fine. I believe there is a test that compares the sum of all the incremental events with the final event (assumes zero if no final epoch event arrives) So with the change even the tests should pass. If the don't et me know.

@erikd erikd merged commit 525844b into master Mar 1, 2022
@iohk-bors iohk-bors bot deleted the erikd/total-rewards-event branch March 1, 2022 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants