From d872b28d8f2b696c4479743b6ecf5037f01f54eb Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 26 May 2022 08:23:10 -0400 Subject: [PATCH] fix: change rpc endpoint to match nwaku --- waku/node.go | 2 ++ waku/v2/rpc/waku_rpc.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/waku/node.go b/waku/node.go index 55bb730a..3a109d7d 100644 --- a/waku/node.go +++ b/waku/node.go @@ -299,6 +299,8 @@ func Execute(options Options) { rpcServer.Start() } + utils.Logger().Info("Node setup complete") + // Wait for a SIGINT or SIGTERM signal ch := make(chan os.Signal, 1) signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM) diff --git a/waku/v2/rpc/waku_rpc.go b/waku/v2/rpc/waku_rpc.go index d2fb7c7f..c4e77632 100644 --- a/waku/v2/rpc/waku_rpc.go +++ b/waku/v2/rpc/waku_rpc.go @@ -72,7 +72,7 @@ func NewWakuRpc(node *node.WakuNode, address string, port int, enableAdmin bool, } mux := http.NewServeMux() - mux.HandleFunc("/jsonrpc", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { t := time.Now() s.ServeHTTP(w, r) wrpc.log.Infof("RPC request at %s took %s", r.URL.Path, time.Since(t))