Skip to content

Commit

Permalink
fix: prevent rpc-only command from trying to update the contract store (
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary authored Jan 29, 2025
2 parents df8ef40 + 0359fae commit 67e3f1a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/Layr-Labs/sidecar/internal/metrics/prometheus"
"github.com/Layr-Labs/sidecar/internal/version"
sidecarClient "github.com/Layr-Labs/sidecar/pkg/clients/sidecar"
"github.com/Layr-Labs/sidecar/pkg/contractStore/postgresContractStore"
"github.com/Layr-Labs/sidecar/pkg/eigenState"
"github.com/Layr-Labs/sidecar/pkg/eventBus"
"github.com/Layr-Labs/sidecar/pkg/postgres"
Expand Down Expand Up @@ -78,11 +77,6 @@ var rpcCmd = &cobra.Command{
l.Fatal("Failed to create gorm instance", zap.Error(err))
}

contractStore := postgresContractStore.NewPostgresContractStore(grm, l, cfg)
if err := contractStore.InitializeCoreContracts(); err != nil {
log.Fatalf("Failed to initialize core contracts: %v", err)
}

mds := pgStorage.NewPostgresBlockStore(grm, l, cfg)
if err != nil {
log.Fatalln(err)
Expand Down

0 comments on commit 67e3f1a

Please sign in to comment.