From b195f0893b8915d93027c59b32fc1227da915cb8 Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Thu, 13 Apr 2023 18:39:46 +0200 Subject: [PATCH] Minor naming adjustement to a discv5 JSON-RPC call (#1540) --- fluffy/rpc/rpc_calls/rpc_discovery_calls.nim | 2 +- fluffy/rpc/rpc_discovery_api.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fluffy/rpc/rpc_calls/rpc_discovery_calls.nim b/fluffy/rpc/rpc_calls/rpc_discovery_calls.nim index b6f94d653..90a361e7f 100644 --- a/fluffy/rpc/rpc_calls/rpc_discovery_calls.nim +++ b/fluffy/rpc/rpc_calls/rpc_discovery_calls.nim @@ -13,4 +13,4 @@ proc discv5_ping(nodeId: Record): PongResponse proc discv5_findNode(nodeId: Record, distances: seq[uint16]): seq[Record] proc discv5_talkReq(nodeId: Record, protocol, payload: string): string -proc discv5_recursiveFindNode(nodeId: NodeId): seq[Record] +proc discv5_recursiveFindNodes(nodeId: NodeId): seq[Record] diff --git a/fluffy/rpc/rpc_discovery_api.nim b/fluffy/rpc/rpc_discovery_api.nim index 3705411e8..b5590ddc9 100644 --- a/fluffy/rpc/rpc_discovery_api.nim +++ b/fluffy/rpc/rpc_discovery_api.nim @@ -134,6 +134,6 @@ proc installDiscoveryApiHandlers*(rpcServer: RpcServer|RpcProxy, else: return talkresp.get().toHex() - rpcServer.rpc("discv5_recursiveFindNode") do(nodeId: NodeId) -> seq[Record]: + rpcServer.rpc("discv5_recursiveFindNodes") do(nodeId: NodeId) -> seq[Record]: let discovered = await d.lookup(nodeId) return discovered.map(proc(n: Node): Record = n.record)