lightningd: return features in connect response.

This is useful in general, but in particular it allows fundchannel to avoid YA
query to figure out if it can wumbo.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON: `connect` returns `features` of the connected peer on success.
This commit is contained in:
Rusty Russell
2020-04-02 14:37:47 +10:30
parent 8cb364dd28
commit 41ebaffba3
7 changed files with 17 additions and 14 deletions

View File

@@ -42,7 +42,8 @@ another node\. Once the peer is connected a channel can be opened with
.SH RETURN VALUE
On success the peer \fIid\fR is returned\.
On success the peer \fIid\fR is returned, as well as a hexidecimal \fIfeatures\fR
bitmap\.
.SH ERRORS

View File

@@ -39,7 +39,8 @@ lightning-fundchannel(7).
RETURN VALUE
------------
On success the peer *id* is returned.
On success the peer *id* is returned, as well as a hexidecimal *features*
bitmap.
ERRORS
------