mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
listnodes/listpeers/peer_connected: remove deprecated globalfeatures
and localfeatures
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Removed: JSON: `listnodes` `globalfeatures` output (`features` since in 0.7.3). Changelog-Removed: JSON: `listpeers` `localfeatures` and `globalfeatures` output (`features` since in 0.7.3). Changelog-Removed: JSON: `peer_connected` hook `localfeatures` and `globalfeatures` output (`features` since in 0.7.3).
This commit is contained in:
parent
e940d953bd
commit
7f32a844f9
2 changed files with 0 additions and 12 deletions
|
@ -267,9 +267,6 @@ static void json_getnodes_reply(struct subd *gossip UNUSED, const u8 *reply,
|
|||
nodes[i]->color, ARRAY_SIZE(nodes[i]->color));
|
||||
json_add_u64(response, "last_timestamp",
|
||||
nodes[i]->last_timestamp);
|
||||
if (deprecated_apis)
|
||||
json_add_hex_talarr(response, "globalfeatures",
|
||||
nodes[i]->features);
|
||||
json_add_hex_talarr(response, "features", nodes[i]->features);
|
||||
json_array_start(response, "addresses");
|
||||
for (j=0; j<tal_count(nodes[i]->addresses); j++) {
|
||||
|
|
|
@ -851,10 +851,6 @@ peer_connected_serialize(struct peer_connected_hook_payload *payload,
|
|||
json_add_string(
|
||||
stream, "addr",
|
||||
type_to_string(stream, struct wireaddr_internal, &payload->addr));
|
||||
if (deprecated_apis) {
|
||||
json_add_hex_talarr(stream, "globalfeatures", NULL);
|
||||
json_add_hex_talarr(stream, "localfeatures", p->features);
|
||||
}
|
||||
json_add_hex_talarr(stream, "features", p->features);
|
||||
json_object_end(stream); /* .peer */
|
||||
}
|
||||
|
@ -1177,11 +1173,6 @@ static void json_add_peer(struct lightningd *ld,
|
|||
struct wireaddr_internal,
|
||||
&p->addr));
|
||||
json_array_end(response);
|
||||
if (deprecated_apis) {
|
||||
json_add_hex_talarr(response, "globalfeatures", NULL);
|
||||
json_add_hex_talarr(response, "localfeatures",
|
||||
p->features);
|
||||
}
|
||||
json_add_hex_talarr(response, "features", p->features);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue