rgb-cln/gossipd
Rusty Russell 745634d9b9 gossipd: don't catch pending node_announcements more than once.
We catch node_announcements for nodes where we haven't finished
analyzing the channel_announcement yet (either because we're still
checking UTXO, or in this case, because we're waiting for a channel_update).

But we reference count the pending_node_announce, so if we have
multiple channels pending, we might try to insert it twice.  Clear it
so this doesn't happen.

There's a second bug where we continue to catch node_announcements
until *all* the channel_announcements are no longer pending; this is fixed
by removing it from the map.

Fixes: #2735
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-06-13 05:58:09 +00:00
..
test wallet: keep a list of unreleased transactions. 2019-06-06 04:47:44 +00:00
Makefile gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_constants.h Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
gossip_peerd_wire.csv gossipd: don't send gossip stream, let per-peer daemons read it themselves. 2019-06-04 01:29:39 +00:00
gossip_store.c gossipd: note if loaded store seems reasonably up-to-date. 2019-06-12 00:37:46 +00:00
gossip_store.csv gossipd: erase old entries from the store, don't just append. 2019-06-04 01:29:39 +00:00
gossip_store.h gossipd: note if loaded store seems reasonably up-to-date. 2019-06-12 00:37:46 +00:00
gossip_wire.csv gossipd: don't charge ourselves fees when calculating route. 2019-06-11 23:19:11 +00:00
gossipd.c gossipd: adjust gossip filters if we discover we're missing gossip. 2019-06-12 00:37:46 +00:00
routing.c gossipd: don't catch pending node_announcements more than once. 2019-06-13 05:58:09 +00:00
routing.h gossipd: APIs return more information about routing message handling. 2019-06-12 00:37:46 +00:00