Files
lightning/lightningd
Rusty Russell 7b735fbeee gossipd: fix json_listpeers printing node information.
json_listpeers returns an array of peers, and an array of nodes: the latter
is a subset of the former, and is used for printing alias/color information.

This changes it so there is a 1:1 correspondance between the peer information
and nodes, meaning no more O(n^2) search.

If there is no node_announce for a peer, we use a negative timestamp
(already used to indicate that the rest of the gossip_getnodes_entry
is not valid).

Other fixes:
1. Use get_node instead of iterating through the node map.
2. A node without addresses is perfectly valid: we have to use the timestamp
   to see if the alias/color are set.  Previously we wouldn't print that
   if it didn't also advertize an address.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-07-07 16:07:53 +02:00
..
2018-07-05 00:19:16 +00:00
2017-10-20 18:31:32 +02:00
2018-07-04 23:57:00 +02:00
2018-07-04 23:57:00 +02:00
2018-06-18 12:31:09 +02:00
2018-05-05 17:55:10 +02:00
2018-05-05 17:55:10 +02:00
2018-07-04 23:57:00 +02:00
2018-06-18 12:33:25 +02:00
2018-06-30 08:24:50 +00:00
2018-07-04 23:57:00 +02:00
2018-07-01 17:37:03 +02:00
2018-05-05 17:55:10 +02:00
2018-07-05 00:19:16 +00:00
2018-07-04 23:57:00 +02:00
2018-02-16 13:08:29 +01:00
2018-07-04 23:57:00 +02:00
2018-05-20 02:32:42 +00:00
2018-07-04 23:57:00 +02:00