Skip to content

Prysm support #3157

@alan-joshy

Description

@alan-joshy

hey guys does this work with prysm beacon because it says it work with prysm and lighthouse but a in explorer main.go it only lets lighthouse

if utils.Config.Indexer.Enabled {
	var rpcClient rpc.Client

	chainID := new(big.Int).SetUint64(utils.Config.Chain.ClConfig.DepositChainID)
	if utils.Config.Indexer.Node.Type == "lighthouse" {
		rpcClient, err = rpc.NewLighthouseClient("http://"+cfg.Indexer.Node.Host+":"+cfg.Indexer.Node.Port, chainID)
		if err != nil {
			utils.LogFatal(err, "new explorer lighthouse client error", 0)
		}
	} else {
		logrus.Fatalf("invalid note type %v specified. supported node types are prysm and lighthouse", utils.Config.Indexer.Node.Type)
	}

	go services.StartHistoricPriceService()
	go exporter.Start(rpcClient)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions