listnodes: display global_features.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
a52d522525
commit
eee84b198b
|
@ -317,6 +317,9 @@ static void json_getnodes_reply(struct subd *gossip UNUSED, const u8 *reply,
|
||||||
nodes[i]->color, ARRAY_SIZE(nodes[i]->color));
|
nodes[i]->color, ARRAY_SIZE(nodes[i]->color));
|
||||||
json_add_u64(response, "last_timestamp",
|
json_add_u64(response, "last_timestamp",
|
||||||
nodes[i]->last_timestamp);
|
nodes[i]->last_timestamp);
|
||||||
|
json_add_hex(response, "global_features",
|
||||||
|
nodes[i]->global_features,
|
||||||
|
tal_len(nodes[i]->global_features));
|
||||||
json_array_start(response, "addresses");
|
json_array_start(response, "addresses");
|
||||||
for (j=0; j<tal_count(nodes[i]->addresses); j++) {
|
for (j=0; j<tal_count(nodes[i]->addresses); j++) {
|
||||||
json_add_address(response, NULL, &nodes[i]->addresses[j]);
|
json_add_address(response, NULL, &nodes[i]->addresses[j]);
|
||||||
|
|
Loading…
Reference in New Issue