Skip to content

Commit

Permalink
fixup! common/features: only support a single feature bitset.
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyrussell committed Oct 10, 2019
1 parent 61f889b commit 40bfdb3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ changes.
- JSON-API: `fundchannel_start` now uses `amount` as the parameter name to replace `satoshi`

- JSON API: `listpeers` and `listnodes` fields `localfeatures` and `globalfeatures` (now just `features`).
- Plugin: `peer_connected` hook fields `localfeatures` and `globalfeatures` (now just `features`).

### Removed

Expand Down
2 changes: 1 addition & 1 deletion connectd/connectd.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ struct io_plan *peer_connected(struct io_conn *conn,
const struct node_id *id,
const struct wireaddr_internal *addr,
const struct crypto_state *cs,
const u8 *localfeatures TAKES);
const u8 *features TAKES);

#endif /* LIGHTNING_CONNECTD_CONNECTD_H */
3 changes: 1 addition & 2 deletions doc/PLUGINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,7 @@ the cryptographic handshake. The parameters have the following structure if ther
"peer": {
"id": "03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f",
"addr": "34.239.230.56:9735",
"globalfeatures": "",
"localfeatures": ""
"features": ""
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions doc/lightning-listpeers.7
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@ of 0 or more objects\.

Each object in the list contains the following data:

.RS
.IP \[bu]
\fIid\fR : The unique id of the peer
.IP \[bu]
\fIconnected\fR : A boolean value showing the connection status
.IP \[bu]
\fInetaddr\fR : A list of network addresses the node is listening on
.IP \[bu]
\fIglobalfeatures\fR : Bit flags showing supported global features (BOLT #9)
.IP \[bu]
\fIlocalfeatures\fR : Bit flags showing supported local features (BOLT #9)
\fIfeatures\fR : Bit flags showing supported features (BOLT #9)
.IP \[bu]
\fIchannels\fR : An list of channel id’s open on the peer
.IP \[bu]
\fIlog\fR : Only present if \fIlevel\fR is set\. List logs related to the
peer at the specified \fIlevel\fR

.RE

If \fIid\fR is supplied and no matching nodes are found, a "peers" object
with an empty list is returned\.
Expand Down

0 comments on commit 40bfdb3

Please sign in to comment.