Skip to content

Commit

Permalink
E3: fixed transactions-to-block indexes download (#12060)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 authored Sep 22, 2024
1 parent b6e0822 commit 4c4d443
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erigon-lib/chain/snapcfg/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ package snapcfg
import (
_ "embed"
"encoding/json"
"github.com/pkg/errors"
"path/filepath"
"slices"
"sort"
"strconv"
"strings"

"github.com/pkg/errors"

"github.com/pelletier/go-toml/v2"
"github.com/tidwall/btree"

Expand Down Expand Up @@ -117,6 +118,9 @@ func (p Preverified) Typed(types []snaptype.Type) Preverified {
//typeName, _ := strings.CutSuffix(parts[2], filepath.Ext(parts[2]))
typeName := name[lastSep+1 : dot]
include := false
if strings.Contains(name, "transactions-to-block") { // transactions-to-block should just be "transactions" type
typeName = "transactions"
}

for _, typ := range types {
if typeName == typ.Name() {
Expand Down

0 comments on commit 4c4d443

Please sign in to comment.