Replies: 3 comments 12 replies
-
AFAICT, it's due to pruning, here's my node doing a historical sync:
It gets all the channels, but then it already either has them or considers them zombies:
|
Beta Was this translation helpful? Give feedback.
-
Ok, so I got a dump from a CLN node and did a diff (Ran The Numbers) against an lnd node. FWIW the lnd node this is running against is running w/ Here're two examples of channels that lnd has pruned Just an isolated example, but in both cases, the node has a single channel to 1 ML, and hasn't had an update in over a year. Not all of them fit this mold though, here's one that still looks somewhat live: https://1ml.com/channel/803890334602166273 Here's a full dump of all 22k cids that cln has, but lnd doesn't: https://0bin.net/paste/NI-WE9hB#aNxlY1a3zENj+nXoOeVVNaAFSEhf6Zc98-VB9JN6QaD |
Beta Was this translation helpful? Give feedback.
-
I'm trying to understand why newer versions of lnd show significantly less channels in getnetworkinfo.
An example of getnetworkinfo in lnd 15:
{
"graph_diameter": 12,
"avg_out_degree": 5.586546546546547,
"max_out_degree": 135,
"num_nodes": 16650,
"num_channels": 46508,
"total_network_capacity": "142767459423",
"avg_channel_size": 3069739.8173002494,
"min_channel_size": "1050",
"max_channel_size": "1000000000",
"median_channel_size_sat": "1000000",
"num_zombie_chans": "162479"
}
An example of getnetworkinfo in lnd 13:
{
"graph_diameter": 0,
"avg_out_degree": 9.716581276199348,
"max_out_degree": 2944,
"num_nodes": 17176,
"num_channels": 83446,
"total_network_capacity": "391523691254",
"avg_channel_size": 4691940.7910984345,
"min_channel_size": "1050",
"max_channel_size": "1400000000",
"median_channel_size_sat": "1000000",
"num_zombie_chans": "113658"
}
An example from a cln node:
lightning-cli listchannels | grep short_channel_id | sort -u | wc -l
80493
There can be ofc variation in the numbers between nodes and implementations, but I'm trying to understand the ~40k difference. I think there are two options here:
I hope you guys can help me make sense of these numbers.
Beta Was this translation helpful? Give feedback.
All reactions