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

Ts tell rewards #2615

Merged
merged 2 commits into from Jan 27, 2022
Merged

Ts tell rewards #2615

merged 2 commits into from Jan 27, 2022

Conversation

TimSheard
Copy link
Contributor

@TimSheard TimSheard commented Jan 12, 2022

We have added incremental telling of reward updates. On every pulse we tell the member rewards we computed in that pulse. We still compute the accumulated rewards so that we can apply them to the LedgerState. But the telling should help the DB-Synch folks.

We maintain and test an invariant that the two ways of doing things compute the same result.
We develop a new testing framework to run property tests on Traces for a single epoch extracted from bigger traces.

@JaredCorduan
Copy link
Contributor

looks great, just needs some tests

Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

Looks awesome @TimSheard ! I only had some trivial comments to add. Thanks for cleaning up the provenance! And I'm glad we kept the old total reward event too.

…ses.

This way there are many small reward events, rather than one big reward event.
This is much more suitable for DB-Sync. Removed provenance from the reward pulser.
Added the Trace operations GetEvents and splitTrace, and the Property forEachEpochTrace
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

LGTM!

@JaredCorduan JaredCorduan merged commit b374b13 into master Jan 27, 2022
@iohk-bors iohk-bors bot deleted the ts-tell-rewards branch January 27, 2022 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants