mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 22:04:52 +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.
36 lines
1.5 KiB
Nim
36 lines
1.5 KiB
Nim
## Portal State Network json-rpc calls
|
|
proc portal_state_nodeInfo(): NodeInfo
|
|
proc portal_state_routingTableInfo(): RoutingTableInfo
|
|
proc portal_state_lookupEnr(nodeId: NodeId): Record
|
|
proc portal_state_addEnrs(enrs: seq[Record]): bool
|
|
proc portal_state_ping(enr: Record): tuple[
|
|
seqNum: uint64, customPayload: string]
|
|
proc portal_state_findNodes(enr: Record): seq[Record]
|
|
proc portal_state_findContent(enr: Record, contentKey: string): tuple[
|
|
connectionId: Option[string],
|
|
content: Option[string],
|
|
enrs: Option[seq[Record]]]
|
|
proc portal_state_findContentExt(enr: Record, contentKey: string): tuple[
|
|
content: Option[string],
|
|
enrs: Option[seq[Record]]]
|
|
proc portal_state_offerExt(enr: Record, contentKey: string): bool
|
|
proc portal_state_recursiveFindNodes(): seq[Record]
|
|
|
|
## Portal History Network json-rpc calls
|
|
proc portal_history_nodeInfo(): NodeInfo
|
|
proc portal_history_routingTableInfo(): RoutingTableInfo
|
|
proc portal_history_lookupEnr(nodeId: NodeId): Record
|
|
proc portal_history_addEnrs(enrs: seq[Record]): bool
|
|
proc portal_history_ping(enr: Record): tuple[
|
|
seqNum: uint64, customPayload: string]
|
|
proc portal_history_findNodes(enr: Record): seq[Record]
|
|
proc portal_history_findContent(enr: Record, contentKey: string): tuple[
|
|
connectionId: Option[string],
|
|
content: Option[string],
|
|
enrs: Option[seq[Record]]]
|
|
proc portal_history_findContentExt(enr: Record, contentKey: string): tuple[
|
|
content: Option[string],
|
|
enrs: Option[seq[Record]]]
|
|
proc portal_history_offerExt(enr: Record, contentKey: string): bool
|
|
proc portal_history_recursiveFindNodes(): seq[Record]
|