From b6c8f6576f02ac5f5f8dc7ce6a6417b1fb340276 Mon Sep 17 00:00:00 2001 From: Jacob Heun Date: Tue, 19 Mar 2019 13:58:21 +0100 Subject: [PATCH] docs: add LIST_PEERS to control spec --- specs/CONTROL.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/specs/CONTROL.md b/specs/CONTROL.md index 97bee91..8b29064 100644 --- a/specs/CONTROL.md +++ b/specs/CONTROL.md @@ -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: [, ...] +} +``` + #### `StreamOpen`