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

third-party: update erigon-snapshot to da5d0f5 #2265

Merged
merged 6 commits into from
Aug 26, 2024
Merged

Conversation

bzawisto
Copy link
Contributor

@bzawisto bzawisto commented Aug 26, 2024

Here's the list of updated snapshots for mainnet, bor and sepolia. In addition there's an extra function that filters out unsupported snapshot files (introduced in erigon 3). One of the tests has been simplified since the ranges have changed at some point (from 500k to 100k) and later down to even 10k (hence computing snapshots count have become unreliable).

@bzawisto bzawisto requested a review from canepat August 26, 2024 07:12
@canepat canepat changed the title Update snapshots third-party: update erigon-snapshot to da5d0f5 Aug 26, 2024
@canepat canepat added the maintenance Some maintenance work (fix, refactor, rename, test...) label Aug 26, 2024
@@ -60,4 +63,16 @@ BlockNum Config::compute_max_block() {
return max_block > 0 ? max_block - 1 : 0;
}

void Config::remove_unsupported_snapshots() {
constexpr std::array UNSUPPORTED_SNAPSHOT_NAME_TOKENS = {
Copy link
Member

Choose a reason for hiding this comment

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

In terms of code style we follow Google C++ Style Guidelines, where the naming convention for constants is this. Hence, this one should read:

kUnsupportedSnapshotNameTokens

@canepat canepat merged commit 0244bfd into master Aug 26, 2024
4 checks passed
@canepat canepat deleted the update-snapshots branch August 26, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Some maintenance work (fix, refactor, rename, test...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants