mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Missed pieces
This commit is contained in:
parent
884dbeca51
commit
5fa3e94f5d
2 changed files with 6 additions and 6 deletions
|
|
@ -57,7 +57,7 @@ import (
|
|||
"github.com/ethereum/go-ethereum/ethdb/remotedb"
|
||||
"github.com/ethereum/go-ethereum/ethstats"
|
||||
"github.com/ethereum/go-ethereum/graphql"
|
||||
executionv1 "github.com/ethereum/go-ethereum/grpc/gen/astria/execution/v1"
|
||||
executionv1a1 "github.com/ethereum/go-ethereum/grpc/gen/astria/execution/v1alpha1"
|
||||
"github.com/ethereum/go-ethereum/internal/ethapi"
|
||||
"github.com/ethereum/go-ethereum/internal/flags"
|
||||
"github.com/ethereum/go-ethereum/les"
|
||||
|
|
@ -2087,7 +2087,7 @@ func RegisterGraphQLService(stack *node.Node, backend ethapi.Backend, filterSyst
|
|||
|
||||
// RegisterGRPCService adds the gRPC API to the node.
|
||||
// It was done this way so that our grpc execution server can access the ethapi.Backend
|
||||
func RegisterGRPCService(stack *node.Node, execServer executionv1.ExecutionServiceServer, cfg *node.Config) {
|
||||
func RegisterGRPCService(stack *node.Node, execServer executionv1a1.ExecutionServiceServer, cfg *node.Config) {
|
||||
if err := node.NewGRPCServerHandler(stack, execServer, cfg); err != nil {
|
||||
Fatalf("Failed to register the gRPC service: %v", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net"
|
||||
"sync"
|
||||
|
||||
executionv1 "github.com/ethereum/go-ethereum/grpc/gen/astria/execution/v1"
|
||||
executionv1a1 "github.com/ethereum/go-ethereum/grpc/gen/astria/execution/v1alpha1"
|
||||
"github.com/ethereum/go-ethereum/log"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
|
@ -16,13 +16,13 @@ type GRPCServerHandler struct {
|
|||
|
||||
endpoint string
|
||||
server *grpc.Server
|
||||
executionServiceServer *executionv1.ExecutionServiceServer
|
||||
executionServiceServer *executionv1a1.ExecutionServiceServer
|
||||
}
|
||||
|
||||
// NewServer creates a new gRPC server.
|
||||
// It registers the execution service server.
|
||||
// It registers the gRPC server with the node so it can be stopped on shutdown.
|
||||
func NewGRPCServerHandler(node *Node, execService executionv1.ExecutionServiceServer, cfg *Config) error {
|
||||
func NewGRPCServerHandler(node *Node, execService executionv1a1.ExecutionServiceServer, cfg *Config) error {
|
||||
server := grpc.NewServer()
|
||||
|
||||
log.Info("gRPC server enabled", "endpoint", cfg.GRPCEndpoint())
|
||||
|
|
@ -33,7 +33,7 @@ func NewGRPCServerHandler(node *Node, execService executionv1.ExecutionServiceSe
|
|||
executionServiceServer: &execService,
|
||||
}
|
||||
|
||||
executionv1.RegisterExecutionServiceServer(server, execService)
|
||||
executionv1a1.RegisterExecutionServiceServer(server, execService)
|
||||
|
||||
node.RegisterGRPCServer(serverHandler)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue