Skip to content

Add Lightning client and release line census dataset - #36

Draft
b10claude wants to merge 1 commit into
bitcoin-data:mainfrom
b10claude:add-ln-client-census
Draft

b10claude wants to merge 1 commit into
bitcoin-data:mainfrom
b10claude:add-ln-client-census

Conversation

@b10claude

Copy link
Copy Markdown

Adds datasets/ln-client-census.toml.

Sources

Add Lightning client and release line census dataset

One entry covering two companion repositories by the same author.

Sources for each claim in the description and the license:

  • Repositories: https://github.com/bitcoindatalabs/ln-client-diversity ("Code, aggregate data and LaTeX source for 'Does Client Diversity Protect the Lightning Network?...'") and https://github.com/bitcoindatalabs/ln-upgrade-dynamics ("...'Who Patches the Lightning Network? Evidence from Release Lines in Gossip...'"). The second README states it "Builds on Does Client Diversity Protect the Lightning Network? ... which owns the client-inference rules used here"
  • Author and affiliation: both READMEs are bylined "Saurabh Kumar, Bitcoin Data Labs"; https://github.com/bitcoindatalabs/ln-client-diversity/blob/main/CITATION.cff -> family-names: Kumar, given-names: Saurabh, affiliation: Bitcoin Data Labs
  • "Monthly JSON panels ... split by client implementation, with node counts and node and capacity shares": read from https://github.com/bitcoindatalabs/ln-client-diversity/raw/main/data/client_census_monthly.json — a JSON array of records {date, client, nodes, node_share, node_share_high, endpoint_share, cap_btc, cap_share, cap_share_high, fleet_nodes, node_share_exfleet}; 185 records over 37 distinct monthly dates and the client labels LND, CLN, Eclair, LDK, Unknown. Stage comment in the README: python src/01_client_census.py # monthly client shares
  • "companion panels on release line adoption, upgrade timing and exposure to security advisories": https://github.com/bitcoindatalabs/ln-upgrade-dynamics/tree/main/data holds upgrade_dynamics.json (keys include fleet.monthly_lines mapping month -> release line -> node count), advisory_exposure.json (keys advisories, cases, response, cln_offline_call, robustness, series), validation.json, panel_manifest.json (per-day node and live-by-client counts) and supporting_numbers.json. README stages: 03_upgrade_dynamics.py "adoption, time to upgrade, hazard model, platform waves", 04_advisory_exposure.py "exposure per advisory, response to disclosure, robustness". All data/ files in both repositories are .json, hence format = ["json"]
  • "infers client and release from the feature bits in node announcements": https://github.com/bitcoindatalabs/ln-client-diversity/blob/main/src/lnmetrics/client_fingerprint.py docstring — "Lightning implementation inference from public gossip (rules v4) ... Signals, strongest first: 1. Operator attribution ... 2. node_announcement feature bits (implementation-specific bits)". ln-upgrade-dynamics README: "infers the release line of every public LND, Core Lightning, Eclair and LDK node from the feature bits it announces, matched against the source of every release"; its src/lnmetrics/ln_release_features.json is "the release table with the feature bits of every release"
  • "its own gossip snapshots": both READMEs, section "Input data" — "The stages read daily snapshots of the public Lightning gossip graph ... as Parquet files ... The underlying gossip and blockchain data are public; our daily snapshots are available from the author on request"
  • "only aggregates are published, not the gossip": ln-upgrade-dynamics README "Data policy — Aggregates only: no list, ranking or label of individual nodes by release, platform or exposure is published, in the paper or in data/"; and "The node-day panel (data/panel/, about 1.3 GB) is not committed". The committed data/ directories contain only aggregate JSON, as listed above
  • Papers (the two paper links): https://arxiv.org/abs/2610.20952 and https://arxiv.org/abs/2610.30350, both named in the respective READMEs and CITATION.cff files
  • License: https://github.com/bitcoindatalabs/ln-client-diversity/blob/main/LICENSE and https://github.com/bitcoindatalabs/ln-upgrade-dynamics/blob/main/LICENSE — both "MIT License / Copyright (c) 2026 Saurabh Kumar"; the GitHub API reports license.spdx_id = MIT for both. The diversity README says explicitly "Code and aggregate data are released under the MIT License", so one combined licence string is correct and no separate data licence needs naming.

Not verified / notes:

  • doi is omitted. 10.48550/arXiv.2610.20952 and 10.48550/arXiv.2610.30350 are the papers' arXiv DOIs, not dataset DOIs, and there are two of them for one entry; no Zenodo-style archive of the data was found.
  • The daily gossip snapshots behind the aggregates are not public ("available from the author on request"), so the collection pipeline itself could not be reproduced or spot-checked; only the committed aggregate JSON was inspected.
  • The raw-gossip collector (how the daily snapshots are taken, which implementation, how many vantage points) is not in either repository.
  • The client-inference rules are versioned (v4-2026-10-14 in panel_manifest.json) and the authors warn they "must be re-validated when new releases change advertised features"; the description does not mention a version, per the timelessness rule.
  • user-agents is reused as the closest existing tag for client-software identification, although Lightning gossip carries no user agent string (the upgrade-dynamics README notes "Lightning gossip carries no software version").

🤖 Generated with Claude Code

https://claude.ai/code/session_01EQFKPv3mB1J6LFakJnjNsd

@b10claude
b10claude force-pushed the add-ln-client-census branch from 8c395ce to 3554655 Compare November 2, 2026 19:31
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Dataset preview (1 changed entry)

How these entries will read once merged, straight from the generator.

Lightning client and release line census

/datasets/ln-client-census/

Monthly JSON panels of the public Lightning Network split by client implementation, with node counts and node and capacity shares, plus companion panels on release line adoption, upgrade timing and exposure to security advisories. Bitcoin Data Labs infers client and release from the feature bits in node announcements in its own gossip snapshots. Good for studying client concentration and patch uptake; only aggregates are published, not the gossip.

Field Value
Category Lightning Network
Format JSON
License MIT (code and aggregate data)
Author Saurabh Kumar (Bitcoin Data Labs)
Tags channels, clients, gossip, mainnet, nodes
Description 3 sentences, 68 words

Links, in the order they will render:

Generated by ci/preview.py.

@0xB10C
0xB10C marked this pull request as draft November 13, 2026 23:15

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants