-
Notifications
You must be signed in to change notification settings - Fork 1k
ledger-tool: Set initial last full snapshot slot #2314
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -365,7 +365,7 @@ pub fn load_and_process_ledger( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| exit.clone(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| abs_request_handler, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| process_options.accounts_db_test_hash_calculation, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| None, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| starting_snapshot_hashes.map(|x| x.full.0 .0), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some more context/info: In the validator, here's where we start AccountsBackgroundService, and get/pass in the last full snapshot slot: Lines 820 to 830 in 46e42f3
In ledger-tool, when actually creating the incremental snapshot, we also do the same thing: Lines 2265 to 2285 in 46e42f3
The changes to ABS in leder-tool now make it consistent with the validator. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| let enable_rpc_transaction_history = arg_matches.is_present("enable_rpc_transaction_history"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
what's with the extra space after
x.full.0?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.
🤷 That's how
cargo-fmtdoes it whenever there are multiple tuples.