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 the checkpoint file when generating protocol snapshot #5679

Merged

Conversation

zhangchiqing
Copy link
Member

This PR adds logs/return the checkpoint file to the admin tool when generating protocol snapshot from latest checkpoint. This allows us to know which checkpoint file is for the generated protocol snapshot file

Comment on lines +86 to +89
return commands.ConvertToMap(protocolSnapshotResponse{
Snapshot: serializable.Encodable(),
Checkpoint: checkpointFile,
})
Copy link
Member Author

Choose a reason for hiding this comment

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

Returning the snapshot along with the checkpoint file name.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.55%. Comparing base (8afb152) to head (291ea4a).
Report is 1013 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #5679       +/-   ##
===========================================
+ Coverage   56.00%   77.55%   +21.54%     
===========================================
  Files        1024        6     -1018     
  Lines       99327      392    -98935     
===========================================
- Hits        55632      304    -55328     
+ Misses      39455       71    -39384     
+ Partials     4240       17     -4223     
Flag Coverage Δ
unittests 77.55% <ø> (+21.54%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhangchiqing zhangchiqing added this pull request to the merge queue Apr 17, 2024
Merged via the queue into master with commit d57892b Apr 17, 2024
55 checks passed
@zhangchiqing zhangchiqing deleted the leo/read-protocol-state-snapshot-log-checkpoint-file branch April 17, 2024 16:34
This pull request was closed.
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.

4 participants