core-lightning/gossipd
Rusty Russell 0ec8304901 gossipd: fix premature towire_reply_short_channel_ids_end if no node_announcement.
Our "are we finished?" logic was wrong: it tested if there are no more
node_announcements, but it's possible that there were no node_announcements
for either end of the channel whose information we sent.

This is actually quite unusual on the real network: looking at mainnet
statis from last May, 4301 of 4337 nodes have node_announcements.

However, with query flags it's much more likely, since they might not
ask for node announcements at all.

(Found by gossip protocol tests)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-08-26 23:09:00 +00:00
..
test gossipd: test vectors for https://github.com/lightningnetwork/lightning-rfc/pull/557 2019-08-10 02:48:34 +00:00
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_constants.h bolt: update to BOLT spec changes (extract format + type specifications) 2019-07-16 06:10:58 +00:00
gossip_peerd_wire.csv wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +00:00
gossip_store.c gossipd: check that we don't try to access a deleted gossip entry. 2019-08-09 08:58:05 +02:00
gossip_store.csv wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +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 wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +00:00
gossipd.c gossipd: fix premature towire_reply_short_channel_ids_end if no node_announcement. 2019-08-26 23:09:00 +00:00
Makefile wire: use common/bigsize routines 2019-07-31 23:25:59 +00:00
routing.c gossipd: use htable_count() rather than reaching into htable struct. 2019-08-26 08:44:22 +00:00
routing.h gossipd: remove gossip entirely if we hit a problem on load. 2019-06-21 22:03:35 +00:00