From 32f7775c40c31e95c74c92502db711f2445e1ef0 Mon Sep 17 00:00:00 2001 From: Andrew Ashikhmin <34320705+yperbasis@users.noreply.github.com> Date: Wed, 8 May 2024 12:03:48 +0200 Subject: [PATCH] downloader: --seedbox doesn't init snaptypes (#10245) Cherry pick PR #10215 into the release Co-authored-by: Alex Sharov --- cmd/downloader/main.go | 3 +++ cmd/integration/main.go | 3 +++ cmd/rpcdaemon/main.go | 3 +++ 3 files changed, 9 insertions(+) diff --git a/cmd/downloader/main.go b/cmd/downloader/main.go index ec22505d76a..13e28a97cbb 100644 --- a/cmd/downloader/main.go +++ b/cmd/downloader/main.go @@ -13,6 +13,9 @@ import ( "strings" "time" + _ "github.com/ledgerwatch/erigon/core/snaptype" //hack + _ "github.com/ledgerwatch/erigon/polygon/bor/snaptype" //hack + "github.com/anacrolix/torrent/metainfo" "github.com/c2h5oh/datasize" grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" diff --git a/cmd/integration/main.go b/cmd/integration/main.go index e4c0c3e2684..dcc76fa1ddf 100644 --- a/cmd/integration/main.go +++ b/cmd/integration/main.go @@ -4,6 +4,9 @@ import ( "fmt" "os" + _ "github.com/ledgerwatch/erigon/core/snaptype" //hack + _ "github.com/ledgerwatch/erigon/polygon/bor/snaptype" //hack + "github.com/ledgerwatch/erigon-lib/common" "github.com/ledgerwatch/erigon/cmd/integration/commands" ) diff --git a/cmd/rpcdaemon/main.go b/cmd/rpcdaemon/main.go index 8b90a3b5650..ad5a372ab90 100644 --- a/cmd/rpcdaemon/main.go +++ b/cmd/rpcdaemon/main.go @@ -12,6 +12,9 @@ import ( "github.com/ledgerwatch/erigon/turbo/debug" "github.com/ledgerwatch/erigon/turbo/jsonrpc" "github.com/spf13/cobra" + + _ "github.com/ledgerwatch/erigon/core/snaptype" //hack + _ "github.com/ledgerwatch/erigon/polygon/bor/snaptype" //hack ) func main() {