Minor naming adjustement to a discv5 JSON-RPC call (#1540)
This commit is contained in:
parent
9fde5c96e8
commit
b195f0893b
|
@ -13,4 +13,4 @@ proc discv5_ping(nodeId: Record): PongResponse
|
||||||
proc discv5_findNode(nodeId: Record, distances: seq[uint16]): seq[Record]
|
proc discv5_findNode(nodeId: Record, distances: seq[uint16]): seq[Record]
|
||||||
proc discv5_talkReq(nodeId: Record, protocol, payload: string): string
|
proc discv5_talkReq(nodeId: Record, protocol, payload: string): string
|
||||||
|
|
||||||
proc discv5_recursiveFindNode(nodeId: NodeId): seq[Record]
|
proc discv5_recursiveFindNodes(nodeId: NodeId): seq[Record]
|
||||||
|
|
|
@ -134,6 +134,6 @@ proc installDiscoveryApiHandlers*(rpcServer: RpcServer|RpcProxy,
|
||||||
else:
|
else:
|
||||||
return talkresp.get().toHex()
|
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)
|
let discovered = await d.lookup(nodeId)
|
||||||
return discovered.map(proc(n: Node): Record = n.record)
|
return discovered.map(proc(n: Node): Record = n.record)
|
||||||
|
|
Loading…
Reference in New Issue