Skip to content

Commit

Permalink
fix: Use correct ethereum package
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Dec 6, 2023
1 parent f9ac8f8 commit 06233dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sage/ethereum/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/ethpandaops/beacon/pkg/beacon"
"github.com/ethpandaops/xatu/pkg/sentry/ethereum/services"
"github.com/ethpandaops/xatu/pkg/sage/ethereum/services"
"github.com/go-co-op/gocron"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -40,7 +40,7 @@ func NewBeaconNode(ctx context.Context, name string, config *Config, log logrus.
Headers: config.BeaconNodeHeaders,
}, "xatu_sentry", opts)

metadata := services.NewMetadataService(log, node)
metadata := services.NewMetadataService(log, node, config.OverrideNetworkName)
duties := services.NewDutiesService(log, node, &metadata)

svcs := []services.Service{
Expand Down
7 changes: 7 additions & 0 deletions pkg/sage/ethereum/services/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ func (m *MetadataService) Start(ctx context.Context) error {
return err
}

m.log.WithFields(logrus.Fields{
"genesis_time": m.Genesis.GenesisTime,
"network": m.Network.Name,
"deposit_chain_id": m.Spec.DepositChainID,
"config_name": m.Spec.ConfigName,
}).Info("Metadata is ready")

return nil
}

Expand Down

0 comments on commit 06233dd

Please sign in to comment.