rgb-cln/gossipd
Rusty Russell 9a575a98a0 gossipd: simplify large reply code.
We used to create the entire reply, the if it was too big, split in
half and retry.

Now that the main network is larger, this always happens with a full
request, which is inefficient.

Instead, produce a reply assuming no compression, then compress as a
bonus.  This is simpler and more efficient, at cost of sending more
packets.

I also renamed an internal dev var to make it clearer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-11-09 17:37:10 -06:00
..
test gossipd: new struct to hold scids and timestamps together. 2020-11-09 17:37:10 -06:00
Makefile gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_generation.c Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
gossip_generation.h gossipd: naming cleanups. 2019-09-20 06:55:00 +00:00
gossip_store.c libplugin-pay: incorporate gossip store. 2020-10-21 08:58:34 +10:30
gossip_store.h gossipd: add tombstone when we remove a channel. 2020-08-28 10:56:50 +09:30
gossip_store_wire.csv gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
gossip_store_wiregen.c gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
gossip_store_wiregen.h gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
gossipd.c gossipd: new struct to hold scids and timestamps together. 2020-11-09 17:37:10 -06:00
gossipd.h gossipd: new struct to hold scids and timestamps together. 2020-11-09 17:37:10 -06:00
gossipd_peerd_wire.csv gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
gossipd_peerd_wiregen.c gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
gossipd_peerd_wiregen.h gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
gossipd_wire.csv Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
gossipd_wiregen.c wires: towire/fromwire for wally_tx 2020-10-20 12:50:31 +10:30
gossipd_wiregen.h wires: towire/fromwire for wally_tx 2020-10-20 12:50:31 +10:30
queries.c gossipd: simplify large reply code. 2020-11-09 17:37:10 -06:00
queries.h gossipd: new struct to hold scids and timestamps together. 2020-11-09 17:37:10 -06:00
routing.c gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
routing.h gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
seeker.c gossipd: new struct to hold scids and timestamps together. 2020-11-09 17:37:10 -06:00
seeker.h gossipd: restore dev-suppress-gossip functionality. 2019-10-10 21:48:52 -05:00