This commit is contained in:
klim0v 2025-09-15 02:18:33 +08:00
parent c1b4526736
commit f87c41c01d

View file

@ -24,6 +24,7 @@ import (
"os" "os"
"slices" "slices"
"sort" "sort"
"strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/beacon/merkle" "github.com/ethereum/go-ethereum/beacon/merkle"
@ -122,7 +123,7 @@ func (c *ChainConfig) LoadForks(file []byte) error {
case int: case int:
epochs[name] = uint64(epoch) epochs[name] = uint64(epoch)
case string: case string:
v, err := hexutil.DecodeUint64(epoch) v, err := strconv.ParseUint(epoch, 10, 64)
if err != nil { if err != nil {
return fmt.Errorf("failed to parse epoch number %q in beacon chain config file: %v", epoch, err) return fmt.Errorf("failed to parse epoch number %q in beacon chain config file: %v", epoch, err)
} }