From c0fcc5f6bba8cd033307b0a1cb86ec4b6b7eb97d Mon Sep 17 00:00:00 2001 From: Callum Waters Date: Mon, 31 May 2021 15:46:49 +0200 Subject: [PATCH] fix net_info call on light rpc (#6514) --- light/proxy/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/light/proxy/routes.go b/light/proxy/routes.go index 229bf7dc7..62d70f545 100644 --- a/light/proxy/routes.go +++ b/light/proxy/routes.go @@ -69,10 +69,10 @@ func makeStatusFunc(c *lrpc.Client) rpcStatusFunc { } } -type rpcNetInfoFunc func(ctx *rpctypes.Context, minHeight, maxHeight int64) (*ctypes.ResultNetInfo, error) +type rpcNetInfoFunc func(ctx *rpctypes.Context) (*ctypes.ResultNetInfo, error) func makeNetInfoFunc(c *lrpc.Client) rpcNetInfoFunc { - return func(ctx *rpctypes.Context, minHeight, maxHeight int64) (*ctypes.ResultNetInfo, error) { + return func(ctx *rpctypes.Context) (*ctypes.ResultNetInfo, error) { return c.NetInfo(ctx.Context()) } }