core-lightning/openingd
Rusty Russell 5591c0b5d8 gossipd: don't send gossip stream, let per-peer daemons read it themselves.
Keeping the uintmap ordering all the broadcastable messages is expensive:
130MB for the million-channels project.  But now we delete obsolete entries
from the store, we can have the per-peer daemons simply read that sequentially
and stream the gossip itself.

This is the most primitive version, where all gossip is streamed;
successive patches will bring back proper handling of timestamp filtering
and initial_routing_sync.

We add a gossip_state field to track what's happening with our gossip
streaming: it's initialized in gossipd, and currently always set, but
once we handle timestamps the per-peer daemon may do it when the first
filter is sent.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-06-04 01:29:39 +00:00
..
Makefile common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
opening_wire.csv common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
openingd.c gossipd: don't send gossip stream, let per-peer daemons read it themselves. 2019-06-04 01:29:39 +00:00