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

Log current and next staking ledgers in cron #54

Open
5 tasks
trevorbernard opened this issue May 10, 2023 · 0 comments
Open
5 tasks

Log current and next staking ledgers in cron #54

trevorbernard opened this issue May 10, 2023 · 0 comments
Labels
feature Adding new improvements/features planned Planned work

Comments

@trevorbernard
Copy link
Collaborator

trevorbernard commented May 10, 2023

Problem

Manual intervention is required to maintain the list of exported epoch staking ledgers for a given Mina network. Here is an example of a helm cron in the Mina codebase: https://github.com/MinaProtocol/mina/blob/compatible/helm/cron_jobs/mainnet-dump-staking-ledger-cronjob.yaml

Acceptance Criteria

The cron should run in the middle of a epoch so it can export the current and next staking ledger. The interval should be the time in minutes for a 7140 slot epoch. To be safe, you can run it in half the time so you guarantee that at least one export will contain both.

Tasks

  • Create helm cron file for dumping staking ledgers
  • Ensure cron interval is 7140 slot minutes or smaller
  • Provision s3 buckets to accept ledger dumps
  • Modify cronjob.yml to pushing to said s3 bucket
  • Update documentation/README
@trevorbernard trevorbernard added enhancement planned Planned work feature Adding new improvements/features labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new improvements/features planned Planned work
Projects
None yet
Development

No branches or pull requests

2 participants