docs: add LIST_PEERS to control spec

This commit is contained in:
Jacob Heun 2019-03-19 13:58:21 +01:00
parent b34bd3c3d1
commit b6c8f6576f
No known key found for this signature in database
GPG Key ID: CA5A94C15809879F
1 changed files with 20 additions and 0 deletions

View File

@ -121,6 +121,26 @@ Response{
}
```
#### `LIST_PEERS`
Clients can issue a `LIST_PEERS` request to get a list of IDs of peers the node is connected to.
**Client**
```
Request{
Type: LIST_PEERS
}
```
**Daemon**
*May return an error*
```
Response{
Type: OK,
Peers: [<PeerInfo>, ...]
}
```
#### `StreamOpen`