mina icon indicating copy to clipboard operation
mina copied to clipboard

epoch ledger hashes check

Open ghost-not-in-the-shell opened this issue 10 months ago • 1 comments

Explain your changes: This PR adds checks for epoch_ledger_hashes in replayer. This checks is optional. To enable this check, you just need to modify the input (it could be any checkpoint files) to the replayer to add a field called target_epoch_ledger_hashes. Once you have this field, when the replayer applies txns 1 by 1, it could compares the ledger hash against the supplied target_epoch_ledger_hashes. Once all blocks have been replayed, you can check the final checkpoint file to see whether has_seen_staking_epoch_ledger_hash and has_seen_next_epoch_ledger_hash fields are true or not.

Explain how you tested your changes: *

Checklist:

  • [ ] Dependency versions are unchanged
    • Notify Velocity team if dependencies must change in CI
  • [ ] Modified the current draft of release notes with details on what is completed or incomplete within this project
  • [ ] Document code purpose, how to use it
    • Mention expected invariants, implicit constraints
  • [ ] Tests were added for the new behavior
    • Document test purpose, significance of failures
    • Test names should reflect their purpose
  • [ ] All tests pass (CI will check this if you didn't)
  • [ ] Serialized types are in stable-versioned modules
  • [ ] Does this close issues? List them
  • Closes #0000

ghost-not-in-the-shell avatar Mar 28 '24 15:03 ghost-not-in-the-shell

!ci-build-me

ghost-not-in-the-shell avatar Mar 28 '24 15:03 ghost-not-in-the-shell