Skip to content

Commit fdea29e

Browse files
Merge pull request #102 from logos-messaging/add-debug-api
2 parents 62c783c + 46caf0c commit fdea29e

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.wordlist.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ EventSource
3636
eventType
3737
fb
3838
fBF
39+
getAvailableConfigs
40+
getAvailableNodeInfoIds
41+
getAvailableNodeInfoItems
3942
getMerkleRoot
43+
getNodeInfo
4044
github
4145
GITHUB
4246
gossipsub
@@ -54,6 +58,7 @@ Init
5458
ipv
5559
iterable
5660
Jazzz
61+
JSON
5762
KiB
5863
Kozlov
5964
libp
@@ -76,6 +81,7 @@ NetworkingConfig
7681
nim
7782
nodeConfig
7883
NodeConfig
84+
nodeInfoId
7985
num
8086
Oleksandr
8187
onEvent

standards/application/waku-api.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,32 @@ although performance or reliability may still be impacted.
561561
`Connected` indicates that the node is operating optimally,
562562
with full support for message reception and transmission.
563563

564+
### Debug
565+
566+
#### Debug function definitions
567+
568+
```yaml
569+
functions:
570+
getAvailableNodeInfoIds:
571+
description: "Returns a list of available node information identifiers. e.g., [ version, my_peer_id, metrics ]."
572+
returns:
573+
type: result<array<string>, error>
574+
575+
getNodeInfo:
576+
description: "Returns the JSON formatted node's information that is requested. Expect single value or list results depending on requested information."
577+
parameters:
578+
- name: nodeInfoId
579+
type: string
580+
description: "Information identifier. The only supported values are the ones returned by getAvailableNodeInfoItems function."
581+
returns:
582+
type: result<string, error>
583+
584+
getAvailableConfigs:
585+
description: "Returns a list of all available options, their description and default values."
586+
returns:
587+
type: string
588+
```
589+
564590
## The Validation API
565591

566592
[WAKU2-RLN-RELAY](https://github.com/vacp2p/rfc-index/blob/main/waku/standards/core/17/rln-relay.md) is currently the primary message validation mechanism in place.

0 commit comments

Comments
 (0)