-
Notifications
You must be signed in to change notification settings - Fork 41
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
Speedup node bootstrap after client download #1132
Speedup node bootstrap after client download #1132
Conversation
c32573e
to
ed64fea
Compare
3580289
to
bc0941a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There appears to be some unrelated changes in formatting which clutter the PR, but otherwise LGTM.
} | ||
|
||
#[tokio::test] | ||
async fn test_download_snapshot_ok_add_clean_file_allowing_node_bootstrap_speedup() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a test checking not adding the 'clean' file still works? I was under the impression the could would always try to create it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be nice bust costly , to do that cleanly I need to extract the code that insert the clean
file in a separated service to mock it. For such a small part I don't think that's worth the increased complexity.
bc0941a
to
a6b0073
Compare
Content
This PR make the
snapshot download
command of the client append a empty file named 'clean' in the unpacked database.This is a trick to tell the cardano node to skip the ledger check at startup (this file is usually added by the node itself on a clean shutdown).
Pre-submit checklist
Issue(s)
Relates to #1131