Skip to content

Commit

Permalink
third-party: update erigon-snapshot to commit bfa3a30 (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat committed Oct 19, 2023
1 parent 77272b5 commit 326959b
Show file tree
Hide file tree
Showing 6 changed files with 4,259 additions and 2,112 deletions.
3,279 changes: 2,102 additions & 1,177 deletions silkworm/node/snapshot/config/bor_mainnet.cpp

Large diffs are not rendered by default.

506 changes: 267 additions & 239 deletions silkworm/node/snapshot/config/mainnet.cpp

Large diffs are not rendered by default.

2,566 changes: 1,873 additions & 693 deletions silkworm/node/snapshot/config/mumbai.cpp

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion silkworm/node/snapshot/config/sepolia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,21 @@ static const char sepolia_data[] = {
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x34, 0x38,
0x31, 0x64, 0x39, 0x37, 0x66, 0x31, 0x33, 0x37, 0x62, 0x37, 0x39, 0x62, 0x32, 0x35, 0x34, 0x62,
0x66, 0x31, 0x35, 0x31, 0x37, 0x38, 0x33, 0x35, 0x66, 0x65, 0x66, 0x33, 0x36, 0x32, 0x33, 0x61,
0x37, 0x35, 0x38, 0x35, 0x32, 0x64, 0x27 };
0x37, 0x35, 0x38, 0x35, 0x32, 0x64, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x33, 0x35,
0x30, 0x30, 0x2d, 0x30, 0x30, 0x34, 0x30, 0x30, 0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73,
0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x38, 0x37, 0x39, 0x64, 0x36, 0x63, 0x34,
0x35, 0x64, 0x32, 0x65, 0x31, 0x39, 0x32, 0x65, 0x62, 0x35, 0x37, 0x35, 0x35, 0x39, 0x38, 0x35,
0x39, 0x34, 0x62, 0x31, 0x39, 0x31, 0x63, 0x35, 0x36, 0x30, 0x34, 0x31, 0x32, 0x31, 0x36, 0x66,
0x30, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x33, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x30,
0x34, 0x30, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67,
0x27, 0x20, 0x3d, 0x20, 0x27, 0x31, 0x62, 0x37, 0x31, 0x35, 0x37, 0x66, 0x65, 0x39, 0x34, 0x34,
0x33, 0x38, 0x39, 0x30, 0x64, 0x35, 0x63, 0x61, 0x30, 0x33, 0x35, 0x31, 0x39, 0x66, 0x64, 0x33,
0x66, 0x33, 0x34, 0x66, 0x61, 0x33, 0x31, 0x34, 0x63, 0x31, 0x62, 0x63, 0x39, 0x27, 0x0a, 0x27,
0x76, 0x31, 0x2d, 0x30, 0x30, 0x33, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x34, 0x30, 0x30, 0x30,
0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65,
0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x31, 0x32, 0x38, 0x64, 0x31, 0x36, 0x36, 0x35, 0x36, 0x63,
0x38, 0x65, 0x62, 0x33, 0x64, 0x33, 0x38, 0x39, 0x63, 0x30, 0x34, 0x34, 0x64, 0x39, 0x31, 0x64,
0x65, 0x35, 0x38, 0x39, 0x38, 0x34, 0x39, 0x64, 0x63, 0x30, 0x30, 0x62, 0x37, 0x35, 0x27 };

const char* sepolia_toml_data() { return &sepolia_data[0]; }
size_t sepolia_toml_size() { return sizeof(sepolia_data); }
2 changes: 1 addition & 1 deletion silkworm/node/snapshot/config_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ TEST_CASE("Config::lookup_known_config", "[silkworm][snapshot][config]") {
}

SECTION("mainnet") {
constexpr std::size_t kExpectedMaxBlockNumber{17'000'000};
constexpr std::size_t kExpectedMaxBlockNumber{18'000'000};
const int kSnapshotSegmentCount{magic_enum::enum_count<SnapshotType>() - 1}; // transactions2block has no segments
const auto mainnet_snapshot_config = Config::lookup_known_config(1, {});
CHECK(mainnet_snapshot_config->preverified_snapshots().size() ==
Expand Down
2 changes: 1 addition & 1 deletion third_party/erigon-snapshot

0 comments on commit 326959b

Please sign in to comment.