-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
1185003
to
5a2d67a
Compare
continue | ||
} | ||
addedNew++ | ||
if strings.HasSuffix(name, ".v.torrent") || strings.HasSuffix(name, ".ef.torrent") { |
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.
Whitelist is better - then in future can add new types.
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 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
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.
this is all I added to your original code: https://github.com/ledgerwatch/erigon/blob/c976b01a11b6b33037456ad4ffd297ffc13fa073/erigon-lib/downloader/webseed.go#L295
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 mean: erigon 3 has also .kv.torrent files and maybe we will add other extensions in future.
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.
sure
This PR adds beacon blocks snapshots for the following chains: