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 1c6166f #2414

Merged
merged 4 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/dev/embed_toml.cpp
Original file line number Diff line number Diff line change
@@ -76,6 +76,7 @@ int main(int argc, char* argv[]) {
output << "#include <string_view>\n\n";
output << "#include \"../entry.hpp\"\n\n";
output << "namespace silkworm::snapshots {\n\n";
output << "using namespace std::literals;\n\n";
output << "inline constexpr std::array k" << snapshot_name << "Snapshots{\n";
for (auto&& [key, value] : table) {
std::string key_str{key.begin(), key.end()};
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ TEST_CASE_METHOD(WebSeedClientTest, "WebSeedClientForTest::validate_torrent_file
TEST_CASE_METHOD(WebSeedClientTest, "WebSeedClientForTest::is_whitelisted", "[db][snapshot][bittorrent]") {
CHECK(client.is_whitelisted("v1-010000-010500-bodies.seg", "542b3f77a2f3c4b9d8a4085d838bdd1b14043f3b"));
CHECK(client.is_whitelisted("v1-010000-010500-headers.seg", "080d0cd1613831820c8f5e48715d68643f48054a"));
CHECK(client.is_whitelisted("v1-010000-010500-transactions.seg", "3e1a85df07d9d6de89a95476214fcf58dbe9234d"));
CHECK(client.is_whitelisted("v1-010000-010500-transactions.seg", "8151bbc8b6635465760af6ebcfd630c9679b31a5"));

CHECK_FALSE(client.is_whitelisted("", ""));
CHECK_FALSE(client.is_whitelisted("v1-010000-010500-bodies2.seg", "542b3f77a2f3c4b9d8a4085d838bdd1b14043f3b")); // name
1,816 changes: 1,053 additions & 763 deletions silkworm/db/datastore/snapshots/config/amoy.hpp

Large diffs are not rendered by default.

2,920 changes: 1,712 additions & 1,208 deletions silkworm/db/datastore/snapshots/config/bor_mainnet.hpp

Large diffs are not rendered by default.

511 changes: 269 additions & 242 deletions silkworm/db/datastore/snapshots/config/holesky.hpp

Large diffs are not rendered by default.

1,299 changes: 786 additions & 513 deletions silkworm/db/datastore/snapshots/config/mainnet.hpp

Large diffs are not rendered by default.

691 changes: 350 additions & 341 deletions silkworm/db/datastore/snapshots/config/sepolia.hpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion third_party/erigon-snapshot
Submodule erigon-snapshot updated 7 files
+1 −1 .github/workflows/ci.yml
+1,051 −763 amoy.toml
+1,710 −1,208 bor-mainnet.toml
+1,683 −670 gnosis.toml
+268 −286 holesky.toml
+854 −513 mainnet.toml
+348 −341 sepolia.toml