From db01089c7269cc3d34fbb81323d48afcbe4a634e Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 14 Mar 2024 23:55:43 +0100 Subject: [PATCH] cmd/geth: fix blsync rpc attach --- cmd/geth/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/geth/config.go b/cmd/geth/config.go index 44f7efc969..76c6484fee 100644 --- a/cmd/geth/config.go +++ b/cmd/geth/config.go @@ -44,6 +44,7 @@ import ( "github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-ethereum/node" "github.com/ethereum/go-ethereum/params" + "github.com/ethereum/go-ethereum/rpc" "github.com/naoina/toml" "github.com/urfave/cli/v2" ) @@ -224,8 +225,10 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) { stack.RegisterLifecycle(simBeacon) } else if ctx.IsSet(utils.BeaconApiFlag.Name) { // Start blsync mode. + srv := rpc.NewServer() + srv.RegisterName("engine", catalyst.NewConsensusAPI(eth)) blsyncer := blsync.NewClient(ctx) - blsyncer.SetEngineRPC(stack.Attach()) + blsyncer.SetEngineRPC(rpc.DialInProc(srv)) stack.RegisterLifecycle(blsyncer) } else { // Launch the engine API for interacting with external consensus client.