Skip to content

Commit

Permalink
third_party: update erigon-snapshot to 1c6166f (#2414)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Oct 15, 2024
1 parent 06c901c commit 4d7f9c7
Show file tree
Hide file tree
Showing 8 changed files with 4,173 additions and 3,069 deletions.
1 change: 1 addition & 0 deletions cmd/dev/embed_toml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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

0 comments on commit 4d7f9c7

Please sign in to comment.