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

only store the go snapshot in the reward pulser #2533

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

JaredCorduan
Copy link
Contributor

The reward pulser is currently storing all three snapshots. It only needs to store the go stapshot and the fees, so this PR makes the adjustment.

Note that this is a change to the ledger state serialization (causing nodes to have to replay from genesis after upgrading). I think it is worth it, though. Though sharing might usually mean no extra memory is used, if a node is shut down and brought back up while the pulser is pulsing, the sharing is lost. In practice this means that if Deadalus is started up on day three of an epoch, it is holding in memory two stake distributions and two delegation mappings that it doesn't need to.

And also the fees in the 'SnapShots'.
Copy link
Collaborator

@lehins lehins 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 29d19cd into master Oct 28, 2021
@iohk-bors iohk-bors bot deleted the jc/pulser-only-store-one-snapshot branch October 28, 2021 12:19
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.

2 participants