Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gossipd: reduce gossip self-advertizement if we have many peers/chann…
…els. dump_our_gossip() is mainly useful for propagating our gossip when we are poorly connected, not when we have many peers. @whitslack reported excessive memory use queueing messages on a large node, so we limit it beyond the first 5 peers, to 5 channels each. This assumes we have ~ the same number of peers as channels, which is probably reasonable. In the long term, we should move this to connectd, which is properly equipped to trickle out these messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Fixes: #6540
- Loading branch information