mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 05:14:14 +00:00
38036966a6
* Improve the tests of the local testnet The local testnet test was rather flaky and would occasionally fail. It has been made more robust by adding the ENRs directly to the routing table instead of doing some random lookups. Additionally, the amount of nodes were increased (=64), ip limits configuration was added, and the bits-per-hop value was set to 1 in order to make the lookups more likely to hit the network instead of only the local routing table. Failure is obviously still possible to happen when sufficient packets get lost. If this turns out to be the case with the current amount of nodes, we might have to revise the testing strategy here. * Disable lookup test for State network Disable lookup test for State network due to issue with custom distance function causing the lookup to not always converging towards the target.
16 lines
608 B
Nim
16 lines
608 B
Nim
# Discovery v5 json-rpc calls
|
|
proc discv5_routingTableInfo(): RoutingTableInfo
|
|
proc discv5_nodeInfo(): NodeInfo
|
|
proc discv5_updateNodeInfo(kvPairs: seq[(string, string)]): RoutingTableInfo
|
|
|
|
proc discv5_addEnrs(enrs: seq[Record]): bool
|
|
proc discv5_getEnr(nodeId: NodeId): Record
|
|
proc discv5_deleteEnr(nodeId: NodeId): bool
|
|
proc discv5_lookupEnr(nodeId: NodeId): Record
|
|
|
|
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_recursiveFindNodes(): seq[Record]
|