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

Add full support to beacon snapshots #8665

Merged
merged 101 commits into from
Nov 13, 2023
Merged

Add full support to beacon snapshots #8665

merged 101 commits into from
Nov 13, 2023

Conversation

Giulio2002
Copy link
Contributor

@Giulio2002 Giulio2002 commented Nov 6, 2023

This PR adds beacon blocks snapshots for the following chains:

  • Mainnet snapshots
  • Sepolia snapshots

@Giulio2002 Giulio2002 marked this pull request as draft November 6, 2023 22:41
@Giulio2002 Giulio2002 marked this pull request as ready for review November 11, 2023 21:21
continue
}
addedNew++
if strings.HasSuffix(name, ".v.torrent") || strings.HasSuffix(name, ".ef.torrent") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Whitelist is better - then in future can add new types.

Copy link
Contributor Author

@Giulio2002 Giulio2002 Nov 11, 2023

Choose a reason for hiding this comment

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

what do you mean? this is your code here, I just added the check that errors out if we have a torrent hash mismatching with our hardcoded ones

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

I mean: erigon 3 has also .kv.torrent files and maybe we will add other extensions in future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@Giulio2002 Giulio2002 changed the title [DRAFT] Add full support to beacon snapshots Add full support to beacon snapshots Nov 13, 2023
@Giulio2002 Giulio2002 merged commit 8d83680 into devel Nov 13, 2023
7 checks passed
@Giulio2002 Giulio2002 deleted the fix-beacon-snapshots branch November 13, 2023 13:10
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.

2 participants