rgb-cln/gossipd
Rusty Russell 97c7ba2f80 gossipd: fix reordering of node_announcements in presence of a unannounced channel.
If we receive a channel_announce but not a channel_update, we store the announce
but don't put it in the broadcast map.

When we delete a channel, we check if the node_announcement broadcast
now preceeds all channel_announcements, and if so, we move it to the
end of the map.  However, with a channel_announcement at index '0',
this test fails.

This is at least one potential cause of the node map getting out of order.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-09-04 14:36:05 +02:00
..
test routing: Make the capacity a parameter to new_chan 2018-08-06 22:46:02 +02:00
Makefile Put the 'd' back in the daemons. 2018-09-03 05:01:40 +00:00
broadcast.c broadcast: don't leak in broadcast_del. 2018-08-24 19:54:32 +02:00
broadcast.h gossip: Have the broadcast_state track its message count 2018-06-09 13:38:46 +02:00
gossip_constants.h gossipd/gossip_constants.h: Single place for BOLT constants. 2018-05-19 15:52:56 -04:00
gossip_store.c gossipd: handle premature node_announcements in the store. 2018-09-04 14:36:05 +02:00
gossip_store.csv gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_store.h devtools: dump-gossipstore. 2018-09-03 00:39:06 +00:00
gossip_wire.csv gossip: Annotate locally added channels with their capacity 2018-08-06 22:46:02 +02:00
gossipd.c Put the 'd' back in the daemons. 2018-09-03 05:01:40 +00:00
routing.c gossipd: fix reordering of node_announcements in presence of a unannounced channel. 2018-09-04 14:36:05 +02:00
routing.h gossipd: fix reordering of node_announcements in presence of a unannounced channel. 2018-09-04 14:36:05 +02:00