Skip to content

Commit

Permalink
ft: wire it up
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul0tripathi committed Jun 17, 2024
1 parent dd3514d commit be66321
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func Run(

storage := services.NewExecutionStorage(forkConfig, stateReader, stateTTL)
go storage.Watcher(ctx, cleanupInterval)
rpcService := services.NewRpcService(storage, forkConfig, stateReader)
ethRpcService := services.NewRpcService(storage, forkConfig, stateReader)
smelterRpcService := services.NewSmelterRpc(storage)

rpcServer := jsonrpc.NewServer(
jsonrpc.WithNamespaceSeparator("_"),
Expand All @@ -62,7 +63,8 @@ func Run(
}),
)

rpcServer.Register("eth", rpcService)
rpcServer.Register("eth", ethRpcService)
rpcServer.Register("smelter", smelterRpcService)

controller.SetupRouter(httpserver.Router(), rpcServer, logger)

Expand Down

0 comments on commit be66321

Please sign in to comment.