BTC: Lightning Network Channel Count Gini
Included with Plus.
How unevenly Lightning Network channels are spread across nodes, from 0 (every node has the same number) to 1 (one node has them all), as our node sees the public network.
Why use it. Measures concentration of visible channel connections without weighting by channel funding. How to read it. Zero means equal positive degree; values nearer one indicate greater concentration. Every endpoint key has equal weight. Each channel contributes one count at each end, so all node degrees sum to twice the channel count. Empty or zero-total distributions are undefined; endpoints are not identified operators. Each UTC hour or day shows the latest accepted local snapshot in that bucket, not a whole-period average. Read the source and coverage labels: local capture time, a qualified own-observer/Core response clock, exact-body gossip receive time and signed policy time are different. The latest completed hour needs its own eligible, unexpired capture; a newer response cannot renew an old row. Rows remain partial local-graph observations, not globally final facts. Retained historical values can remain visible when delivery is delayed; their original clocks are not renewed. Missing buckets stay gaps, and history covers only retained prospective captures. SMA, when selected, averages complete adjacent snapshot buckets; it does not add channels or capacity over time, and missing buckets or incomplete warmup leave gaps.
Calculation. Count each unique channel once at each of its two endpoint keys. Sort the resulting node degrees x and calculate 2*sum(i*x[i])/(n*sum(x)) - (n+1)/n with i starting at one. Do not use capacity weights or collapse public keys into entities. Integer satoshi/count facts are normalized before calculation; non-integer results use 50-significant-digit Decimal arithmetic with half-even rounding. Use our unfunded Core Lightning observer's retained public gossip and original snapshot calculator, with Bitcoin facts checked against our own Core node. Captures use sequential RPC reads, not an atomic network snapshot. The graph includes Core Lightning's 72-block DYING-channel grace; it is not a global currently unspent-channel census. Private channels, balances, payments, liquidity and operator identities are not measured.