diff --git a/fluffy/rpc/rpc_portal_api.nim b/fluffy/rpc/rpc_portal_api.nim index 757c3f497..85929da8e 100644 --- a/fluffy/rpc/rpc_portal_api.nim +++ b/fluffy/rpc/rpc_portal_api.nim @@ -55,6 +55,9 @@ proc installPortalApiHandlers*( return true rpcServer.rpc("portal_" & network & "GetEnr") do(nodeId: NodeId) -> Record: + if p.localNode.id == nodeId: + return p.localNode.record + let node = p.getNode(nodeId) if node.isSome(): return node.get().record