Minor naming adjustement to a discv5 JSON-RPC call (#1540)

This commit is contained in:
Kim De Mey 2023-04-13 18:39:46 +02:00 committed by GitHub
parent 9fde5c96e8
commit b195f0893b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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)