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

feat: add epoch start timestamp #23

Merged
merged 4 commits into from
Feb 29, 2024

Conversation

butonium
Copy link
Contributor

Context:

This PR introduces epoch_start_timestamp within ClusterHistoryEntry to enhance APY tracking, as detailed in #18

The epoch_start_timestamp is assigned during the execution of the copy_cluster_info ix for the current epoch

Tests:

A new function has been added to modify the Clock sysvar. This was necessary because advance_num_epochs did not update the Clock sysvar during tests

Dependencies

This PR depends on the successful merge of #22. After merge, I will update this accordingly.

tests/tests/test_start_epoch_timestamp.rs Outdated Show resolved Hide resolved
programs/validator-history/src/state.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@ebatsell ebatsell left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for the contribution!

@ebatsell ebatsell merged commit 52e9718 into jito-foundation:master Feb 29, 2024
6 checks passed
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