mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-25 02:15:30 +00:00
Return false instead of exception on failed deleteEnr JSON-RPC (#1706)
This commit is contained in:
parent
0105e3e8cf
commit
745ca026fe
@ -71,7 +71,7 @@ proc installPortalApiHandlers*(
|
||||
p.routingTable.removeNode(node.get())
|
||||
return true
|
||||
else:
|
||||
raise newException(ValueError, "Record not in local routing table.")
|
||||
return false
|
||||
|
||||
rpcServer.rpc("portal_" & network & "LookupEnr") do(nodeId: NodeId) -> Record:
|
||||
let lookup = await p.resolve(nodeId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user