Skip to content

Commit

Permalink
third-party: update erigon-snapshot to commit 1d69651 (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Jul 12, 2023
1 parent 9008037 commit 720ee34
Show file tree
Hide file tree
Showing 12 changed files with 623 additions and 691 deletions.
7 changes: 7 additions & 0 deletions cmd/dev/embed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ int main(int argc, char* argv[]) {
// Iterating through all the files in the input folder
for (const auto& entry : fs::recursive_directory_iterator(input_folder)) {
const fs::path& entry_path = entry.path();
// Skip any file in 'history' sub-folder
if (entry_path.parent_path().string().ends_with("history")) {
continue;
}
// Match only required extension
if (entry_path.extension() == extension) {
// Open the input .toml file
std::ifstream input{entry_path.string(), std::ios::binary};
Expand All @@ -58,6 +63,8 @@ int main(int argc, char* argv[]) {
input.read(bytes.data(), static_cast<std::streamsize>(input_size));
assert(static_cast<size_t>(input.gcount()) == input_size);

std::cout << "Processing TOML file: " << entry_path.string() << "\n";

// Open the output .cpp file
fs::path entry_filename = entry.path().stem();
entry_filename.replace_filename(std::regex_replace(entry_filename.string(), hyphen_re, "_"));
Expand Down
6 changes: 2 additions & 4 deletions silkworm/node/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ target_link_libraries(${SILKWORM_EMBED} PRIVATE CLI11::CLI11 Boost::headers)
set(SILKWORM_TOML_SRC_DIR "${SILKWORM_MAIN_DIR}/third_party/erigon-snapshot")
set(SILKWORM_TOML_SRC
${SILKWORM_TOML_SRC_DIR}/bor-mainnet.toml
${SILKWORM_TOML_SRC_DIR}/bsc.toml
${SILKWORM_TOML_SRC_DIR}/gnosis.toml
${SILKWORM_TOML_SRC_DIR}/goerli.toml
${SILKWORM_TOML_SRC_DIR}/mainnet.toml
Expand All @@ -44,7 +43,6 @@ set(SILKWORM_TOML_SRC
set(SILKWORM_TOML_CPP_SRC_DIR "${SILKWORM_MAIN_SRC_DIR}/node/snapshot/config")
set(SILKWORM_TOML_CPP_SRC
${SILKWORM_TOML_CPP_SRC_DIR}/bor_mainnet.cpp
${SILKWORM_TOML_CPP_SRC_DIR}/bsc.cpp
${SILKWORM_TOML_CPP_SRC_DIR}/gnosis.cpp
${SILKWORM_TOML_CPP_SRC_DIR}/goerli.cpp
${SILKWORM_TOML_CPP_SRC_DIR}/mainnet.cpp
Expand All @@ -56,10 +54,10 @@ set(SILKWORM_TOML_CPP_SRC
add_custom_command(
OUTPUT "${SILKWORM_TOML_CPP_SRC}"
COMMAND "${SILKWORM_EMBED}" ARGS -i "${SILKWORM_TOML_SRC_DIR}" -o "${SILKWORM_TOML_CPP_SRC_DIR}" -e ".toml" -s "toml"
DEPENDS "${SILKWORM_EMBED}"
DEPENDS "${SILKWORM_EMBED}" "${SILKWORM_TOML_SRC}"
)

add_custom_target(generate_toml DEPENDS "${SILKWORM_TOML_SRC}" "${SILKWORM_EMBED}")
add_custom_target(generate_toml ALL DEPENDS "${SILKWORM_TOML_CPP_SRC}" "${SILKWORM_EMBED}")

file(
GLOB_RECURSE
Expand Down
437 changes: 436 additions & 1 deletion silkworm/node/snapshot/config/bor_mainnet.cpp

Large diffs are not rendered by default.

676 changes: 0 additions & 676 deletions silkworm/node/snapshot/config/bsc.cpp

This file was deleted.

67 changes: 67 additions & 0 deletions silkworm/node/snapshot/config/chiado.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/* Generated from chiado.toml using Silkworm embed */

#include <cstddef>

static const char chiado_data[] = {
0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x30, 0x35, 0x30,
0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20,
0x27, 0x66, 0x35, 0x32, 0x61, 0x39, 0x30, 0x65, 0x39, 0x65, 0x37, 0x64, 0x64, 0x38, 0x61, 0x36,
0x32, 0x35, 0x61, 0x39, 0x31, 0x66, 0x32, 0x36, 0x37, 0x61, 0x30, 0x31, 0x66, 0x31, 0x65, 0x64,
0x33, 0x63, 0x39, 0x33, 0x34, 0x31, 0x63, 0x33, 0x35, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30,
0x30, 0x30, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x30, 0x35, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61,
0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x33, 0x35, 0x33,
0x34, 0x37, 0x65, 0x34, 0x30, 0x32, 0x30, 0x39, 0x63, 0x38, 0x63, 0x34, 0x61, 0x62, 0x35, 0x31,
0x65, 0x65, 0x32, 0x61, 0x30, 0x32, 0x38, 0x39, 0x31, 0x32, 0x65, 0x34, 0x63, 0x38, 0x62, 0x32,
0x31, 0x32, 0x65, 0x33, 0x34, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x30, 0x30, 0x30,
0x30, 0x2d, 0x30, 0x30, 0x30, 0x35, 0x30, 0x30, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x35, 0x31,
0x30, 0x38, 0x33, 0x66, 0x65, 0x30, 0x30, 0x66, 0x39, 0x34, 0x39, 0x64, 0x30, 0x32, 0x35, 0x32,
0x35, 0x39, 0x65, 0x64, 0x35, 0x39, 0x62, 0x30, 0x35, 0x65, 0x33, 0x37, 0x32, 0x63, 0x35, 0x63,
0x65, 0x36, 0x32, 0x38, 0x31, 0x31, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x30, 0x35,
0x30, 0x30, 0x2d, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73,
0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x33, 0x32, 0x65, 0x30, 0x34, 0x62, 0x61,
0x33, 0x39, 0x31, 0x35, 0x38, 0x33, 0x31, 0x30, 0x62, 0x64, 0x35, 0x34, 0x34, 0x63, 0x36, 0x65,
0x34, 0x31, 0x64, 0x66, 0x39, 0x64, 0x62, 0x64, 0x31, 0x34, 0x36, 0x35, 0x64, 0x39, 0x33, 0x65,
0x65, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x30, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x30,
0x31, 0x30, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67,
0x27, 0x20, 0x3d, 0x20, 0x27, 0x31, 0x64, 0x64, 0x65, 0x63, 0x30, 0x35, 0x37, 0x61, 0x39, 0x33,
0x63, 0x65, 0x66, 0x34, 0x34, 0x37, 0x66, 0x30, 0x64, 0x66, 0x63, 0x62, 0x36, 0x30, 0x33, 0x61,
0x38, 0x33, 0x33, 0x65, 0x31, 0x66, 0x33, 0x34, 0x61, 0x32, 0x39, 0x34, 0x38, 0x27, 0x0a, 0x27,
0x76, 0x31, 0x2d, 0x30, 0x30, 0x30, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x31, 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, 0x30, 0x61, 0x37, 0x35, 0x64, 0x39, 0x61, 0x38, 0x35, 0x62,
0x66, 0x35, 0x32, 0x35, 0x37, 0x35, 0x34, 0x62, 0x38, 0x66, 0x32, 0x66, 0x61, 0x32, 0x30, 0x64,
0x64, 0x38, 0x39, 0x66, 0x35, 0x62, 0x32, 0x31, 0x64, 0x65, 0x31, 0x65, 0x35, 0x66, 0x27, 0x0a,
0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x31, 0x35, 0x30,
0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20,
0x27, 0x39, 0x64, 0x35, 0x66, 0x30, 0x33, 0x36, 0x61, 0x31, 0x33, 0x64, 0x39, 0x65, 0x66, 0x38,
0x38, 0x32, 0x32, 0x31, 0x64, 0x39, 0x63, 0x33, 0x39, 0x63, 0x30, 0x39, 0x32, 0x39, 0x32, 0x32,
0x31, 0x36, 0x61, 0x61, 0x32, 0x65, 0x61, 0x36, 0x30, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30,
0x30, 0x31, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x31, 0x35, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61,
0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x62, 0x36, 0x35,
0x33, 0x61, 0x36, 0x66, 0x30, 0x64, 0x37, 0x30, 0x32, 0x63, 0x62, 0x38, 0x34, 0x33, 0x39, 0x36,
0x30, 0x65, 0x33, 0x32, 0x37, 0x62, 0x63, 0x35, 0x63, 0x36, 0x36, 0x31, 0x64, 0x64, 0x37, 0x31,
0x30, 0x30, 0x31, 0x61, 0x63, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x31, 0x30, 0x30,
0x30, 0x2d, 0x30, 0x30, 0x31, 0x35, 0x30, 0x30, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x38, 0x32,
0x39, 0x39, 0x34, 0x63, 0x61, 0x34, 0x64, 0x33, 0x36, 0x32, 0x65, 0x66, 0x63, 0x61, 0x62, 0x65,
0x64, 0x38, 0x61, 0x66, 0x32, 0x35, 0x36, 0x32, 0x63, 0x64, 0x34, 0x38, 0x61, 0x31, 0x34, 0x65,
0x65, 0x64, 0x64, 0x38, 0x37, 0x37, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x31, 0x35,
0x30, 0x30, 0x2d, 0x30, 0x30, 0x32, 0x30, 0x30, 0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73,
0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x63, 0x33, 0x66, 0x62, 0x33, 0x38, 0x31,
0x66, 0x38, 0x66, 0x64, 0x61, 0x31, 0x32, 0x30, 0x31, 0x63, 0x31, 0x30, 0x39, 0x62, 0x38, 0x64,
0x66, 0x63, 0x31, 0x66, 0x64, 0x65, 0x34, 0x34, 0x33, 0x34, 0x34, 0x32, 0x30, 0x34, 0x61, 0x64,
0x63, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x31, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x30,
0x32, 0x30, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67,
0x27, 0x20, 0x3d, 0x20, 0x27, 0x61, 0x62, 0x35, 0x63, 0x31, 0x37, 0x33, 0x35, 0x61, 0x65, 0x38,
0x34, 0x31, 0x36, 0x64, 0x33, 0x37, 0x34, 0x37, 0x63, 0x39, 0x38, 0x37, 0x38, 0x38, 0x35, 0x64,
0x30, 0x32, 0x62, 0x39, 0x32, 0x33, 0x32, 0x61, 0x63, 0x33, 0x37, 0x35, 0x63, 0x27, 0x0a, 0x27,
0x76, 0x31, 0x2d, 0x30, 0x30, 0x31, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x32, 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, 0x61, 0x63, 0x33, 0x33, 0x35, 0x30, 0x34, 0x38, 0x33, 0x31,
0x64, 0x65, 0x35, 0x34, 0x38, 0x62, 0x31, 0x65, 0x63, 0x61, 0x35, 0x39, 0x37, 0x66, 0x66, 0x64,
0x30, 0x34, 0x61, 0x62, 0x32, 0x36, 0x65, 0x31, 0x30, 0x36, 0x64, 0x36, 0x33, 0x34, 0x27, 0x0a
};

const char* chiado_toml_data() { return &chiado_data[0]; }
size_t chiado_toml_size() { return sizeof(chiado_data); }
31 changes: 30 additions & 1 deletion silkworm/node/snapshot/config/gnosis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,36 @@ static const char gnosis_data[] = {
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x32, 0x37,
0x35, 0x33, 0x63, 0x35, 0x61, 0x30, 0x65, 0x63, 0x32, 0x35, 0x63, 0x39, 0x66, 0x64, 0x33, 0x39,
0x61, 0x37, 0x34, 0x64, 0x39, 0x36, 0x65, 0x36, 0x38, 0x66, 0x33, 0x64, 0x66, 0x64, 0x39, 0x36,
0x62, 0x37, 0x37, 0x62, 0x39, 0x33, 0x27, 0x0a };
0x62, 0x37, 0x37, 0x62, 0x39, 0x33, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x32, 0x35, 0x35,
0x30, 0x30, 0x2d, 0x30, 0x32, 0x36, 0x30, 0x30, 0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73,
0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x66, 0x39, 0x39, 0x31, 0x63, 0x33, 0x37,
0x66, 0x66, 0x62, 0x34, 0x38, 0x32, 0x37, 0x30, 0x35, 0x63, 0x66, 0x62, 0x61, 0x31, 0x30, 0x30,
0x34, 0x30, 0x35, 0x35, 0x39, 0x37, 0x30, 0x39, 0x35, 0x66, 0x33, 0x66, 0x38, 0x62, 0x38, 0x32,
0x62, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x32, 0x35, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x32,
0x36, 0x30, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67,
0x27, 0x20, 0x3d, 0x20, 0x27, 0x35, 0x62, 0x30, 0x38, 0x38, 0x38, 0x65, 0x34, 0x35, 0x30, 0x64,
0x66, 0x62, 0x64, 0x32, 0x66, 0x38, 0x65, 0x65, 0x32, 0x30, 0x37, 0x30, 0x38, 0x64, 0x63, 0x30,
0x36, 0x31, 0x39, 0x34, 0x34, 0x32, 0x32, 0x30, 0x33, 0x30, 0x30, 0x64, 0x30, 0x27, 0x0a, 0x27,
0x76, 0x31, 0x2d, 0x30, 0x32, 0x35, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x32, 0x36, 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, 0x65, 0x63, 0x31, 0x64, 0x61, 0x31, 0x33, 0x37, 0x65, 0x65,
0x61, 0x37, 0x36, 0x65, 0x34, 0x62, 0x34, 0x31, 0x30, 0x64, 0x30, 0x37, 0x31, 0x38, 0x37, 0x38,
0x32, 0x64, 0x62, 0x32, 0x61, 0x37, 0x66, 0x38, 0x34, 0x66, 0x31, 0x31, 0x66, 0x66, 0x27, 0x0a,
0x27, 0x76, 0x31, 0x2d, 0x30, 0x32, 0x36, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x32, 0x36, 0x35, 0x30,
0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20,
0x27, 0x33, 0x33, 0x38, 0x39, 0x37, 0x66, 0x31, 0x30, 0x35, 0x30, 0x63, 0x33, 0x38, 0x62, 0x34,
0x66, 0x32, 0x61, 0x34, 0x63, 0x37, 0x31, 0x62, 0x65, 0x30, 0x64, 0x38, 0x63, 0x61, 0x35, 0x32,
0x34, 0x36, 0x37, 0x36, 0x61, 0x35, 0x36, 0x62, 0x32, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30,
0x32, 0x36, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x32, 0x36, 0x35, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61,
0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x66, 0x37, 0x66,
0x36, 0x33, 0x38, 0x31, 0x32, 0x38, 0x31, 0x66, 0x39, 0x61, 0x30, 0x35, 0x61, 0x37, 0x39, 0x36,
0x37, 0x36, 0x39, 0x31, 0x33, 0x33, 0x63, 0x64, 0x66, 0x65, 0x30, 0x39, 0x31, 0x37, 0x33, 0x36,
0x63, 0x64, 0x39, 0x61, 0x37, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x32, 0x36, 0x30, 0x30,
0x30, 0x2d, 0x30, 0x32, 0x36, 0x35, 0x30, 0x30, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x64, 0x65,
0x62, 0x33, 0x63, 0x66, 0x64, 0x33, 0x32, 0x36, 0x62, 0x34, 0x33, 0x33, 0x35, 0x34, 0x38, 0x34,
0x39, 0x37, 0x63, 0x39, 0x65, 0x34, 0x62, 0x62, 0x35, 0x36, 0x34, 0x38, 0x34, 0x38, 0x35, 0x31,
0x62, 0x66, 0x66, 0x65, 0x34, 0x30, 0x27, 0x0a };

const char* gnosis_toml_data() { return &gnosis_data[0]; }
size_t gnosis_toml_size() { return sizeof(gnosis_data); }
18 changes: 16 additions & 2 deletions silkworm/node/snapshot/config/goerli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,22 @@ static const char goerli_data[] = {
0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65,
0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x62, 0x64, 0x62, 0x31, 0x34, 0x39, 0x65, 0x35, 0x62, 0x35,
0x64, 0x39, 0x30, 0x38, 0x63, 0x33, 0x62, 0x30, 0x37, 0x36, 0x39, 0x35, 0x35, 0x63, 0x65, 0x39,
0x38, 0x61, 0x39, 0x32, 0x35, 0x62, 0x61, 0x33, 0x62, 0x30, 0x31, 0x62, 0x66, 0x31, 0x27, 0x0a
};
0x38, 0x61, 0x39, 0x32, 0x35, 0x62, 0x61, 0x33, 0x62, 0x30, 0x31, 0x62, 0x66, 0x31, 0x27, 0x0a,
0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x38, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x38, 0x35, 0x30,
0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20,
0x27, 0x30, 0x64, 0x62, 0x64, 0x63, 0x62, 0x38, 0x34, 0x66, 0x62, 0x65, 0x33, 0x65, 0x61, 0x34,
0x35, 0x37, 0x30, 0x31, 0x37, 0x61, 0x35, 0x31, 0x61, 0x61, 0x64, 0x66, 0x64, 0x30, 0x34, 0x30,
0x32, 0x62, 0x37, 0x62, 0x36, 0x65, 0x65, 0x65, 0x61, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30,
0x30, 0x38, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x38, 0x35, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61,
0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x38, 0x30, 0x66,
0x32, 0x35, 0x35, 0x35, 0x33, 0x62, 0x36, 0x33, 0x66, 0x38, 0x64, 0x64, 0x63, 0x32, 0x39, 0x65,
0x65, 0x65, 0x64, 0x37, 0x35, 0x36, 0x34, 0x62, 0x61, 0x61, 0x35, 0x32, 0x38, 0x39, 0x31, 0x34,
0x35, 0x37, 0x36, 0x39, 0x66, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x30, 0x38, 0x30, 0x30,
0x30, 0x2d, 0x30, 0x30, 0x38, 0x35, 0x30, 0x30, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x61, 0x63,
0x39, 0x38, 0x64, 0x30, 0x35, 0x62, 0x66, 0x38, 0x36, 0x37, 0x34, 0x61, 0x66, 0x36, 0x66, 0x63,
0x36, 0x61, 0x32, 0x33, 0x64, 0x63, 0x32, 0x38, 0x35, 0x34, 0x31, 0x39, 0x37, 0x30, 0x66, 0x37,
0x39, 0x39, 0x36, 0x64, 0x32, 0x36, 0x27, 0x0a };

const char* goerli_toml_data() { return &goerli_data[0]; }
size_t goerli_toml_size() { return sizeof(goerli_data); }
31 changes: 30 additions & 1 deletion silkworm/node/snapshot/config/mainnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,36 @@ static const char mainnet_data[] = {
0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x65,
0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x64, 0x38, 0x30, 0x66, 0x34, 0x66, 0x66, 0x66, 0x61, 0x61,
0x30, 0x65, 0x36, 0x64, 0x66, 0x63, 0x37, 0x34, 0x36, 0x62, 0x65, 0x35, 0x64, 0x37, 0x38, 0x63,
0x34, 0x33, 0x63, 0x61, 0x37, 0x64, 0x66, 0x31, 0x32, 0x61, 0x35, 0x36, 0x30, 0x31, 0x27, 0x0a
0x34, 0x33, 0x63, 0x61, 0x37, 0x64, 0x66, 0x31, 0x32, 0x61, 0x35, 0x36, 0x30, 0x31, 0x27, 0x0a,
0x27, 0x76, 0x31, 0x2d, 0x30, 0x31, 0x36, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x31, 0x36, 0x35, 0x30,
0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20,
0x27, 0x31, 0x31, 0x66, 0x62, 0x32, 0x32, 0x62, 0x38, 0x62, 0x32, 0x34, 0x31, 0x35, 0x36, 0x36,
0x38, 0x62, 0x32, 0x36, 0x38, 0x34, 0x31, 0x31, 0x37, 0x34, 0x65, 0x38, 0x35, 0x37, 0x32, 0x37,
0x39, 0x35, 0x31, 0x37, 0x37, 0x32, 0x39, 0x33, 0x37, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30,
0x31, 0x36, 0x30, 0x30, 0x30, 0x2d, 0x30, 0x31, 0x36, 0x35, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61,
0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x32, 0x61, 0x33,
0x36, 0x34, 0x37, 0x63, 0x61, 0x31, 0x36, 0x34, 0x39, 0x31, 0x62, 0x30, 0x37, 0x39, 0x37, 0x34,
0x34, 0x38, 0x66, 0x39, 0x32, 0x33, 0x39, 0x65, 0x35, 0x34, 0x37, 0x31, 0x34, 0x32, 0x65, 0x37,
0x37, 0x39, 0x30, 0x33, 0x36, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x31, 0x36, 0x30, 0x30,
0x30, 0x2d, 0x30, 0x31, 0x36, 0x35, 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, 0x63,
0x66, 0x33, 0x63, 0x31, 0x34, 0x63, 0x31, 0x66, 0x35, 0x63, 0x33, 0x63, 0x37, 0x35, 0x35, 0x38,
0x33, 0x62, 0x61, 0x35, 0x61, 0x38, 0x64, 0x34, 0x36, 0x35, 0x61, 0x32, 0x31, 0x37, 0x39, 0x64,
0x31, 0x36, 0x62, 0x61, 0x61, 0x33, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x31, 0x36, 0x35,
0x30, 0x30, 0x2d, 0x30, 0x31, 0x37, 0x30, 0x30, 0x30, 0x2d, 0x62, 0x6f, 0x64, 0x69, 0x65, 0x73,
0x2e, 0x73, 0x65, 0x67, 0x27, 0x20, 0x3d, 0x20, 0x27, 0x62, 0x37, 0x32, 0x62, 0x38, 0x30, 0x65,
0x37, 0x32, 0x32, 0x65, 0x38, 0x63, 0x34, 0x64, 0x64, 0x38, 0x63, 0x33, 0x39, 0x33, 0x64, 0x63,
0x35, 0x64, 0x31, 0x66, 0x34, 0x65, 0x36, 0x39, 0x64, 0x38, 0x62, 0x65, 0x33, 0x64, 0x33, 0x31,
0x32, 0x27, 0x0a, 0x27, 0x76, 0x31, 0x2d, 0x30, 0x31, 0x36, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x31,
0x37, 0x30, 0x30, 0x30, 0x2d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x65, 0x67,
0x27, 0x20, 0x3d, 0x20, 0x27, 0x38, 0x36, 0x38, 0x37, 0x36, 0x62, 0x63, 0x35, 0x32, 0x31, 0x66,
0x63, 0x31, 0x64, 0x33, 0x64, 0x33, 0x35, 0x30, 0x64, 0x64, 0x38, 0x64, 0x39, 0x32, 0x36, 0x36,
0x66, 0x62, 0x64, 0x34, 0x64, 0x34, 0x37, 0x66, 0x32, 0x35, 0x30, 0x39, 0x32, 0x27, 0x0a, 0x27,
0x76, 0x31, 0x2d, 0x30, 0x31, 0x36, 0x35, 0x30, 0x30, 0x2d, 0x30, 0x31, 0x37, 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, 0x35, 0x36, 0x61, 0x30, 0x39, 0x39, 0x30, 0x66, 0x30,
0x62, 0x62, 0x34, 0x32, 0x31, 0x36, 0x62, 0x35, 0x63, 0x38, 0x38, 0x35, 0x64, 0x35, 0x34, 0x30,
0x63, 0x65, 0x36, 0x66, 0x61, 0x33, 0x30, 0x37, 0x66, 0x30, 0x36, 0x31, 0x61, 0x64, 0x27, 0x0a
};

const char* mainnet_toml_data() { return &mainnet_data[0]; }
Expand Down
Loading

0 comments on commit 720ee34

Please sign in to comment.