I have my own c-lightning node. listchannels returns 11,455 but explorers, e.g https://explore.casa/ show around 39,000. Do I need to set something to get all channel info?
$ lightning-cli listchannels | grep source | wc
11455 22910 996585
I'm thinking "initial_routing_sync" might be relevant. But I can't find how to use it.
upon receiving an init message with the initial_routing_sync flag set to 1: SHOULD send gossip messages for all known channels and nodes, as if they were just received.
https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md
Update 1
I restarted clightning 3 hours ago but still the count is 8,433. And seems the number stays at the almost same number.
What I did:
1. Stop lightningd
2. Delete /home/lightningd/.lightning/gossip_store
3. Start lightningd
4. Connect to a peer
$ lightning-cli connect 03efccf2c383d7bf340da9a3f02e2c23104a0e4fe8ac1a880c8e2dc92fbdacd9df@144.76.235.20:9735
5. Wait for 3 hours
6. Check the count
$ lightning-cli listchannels | grep source | wc
8433 16866 733671