Skip to content

Add Bitcoin node census dataset - #88

Merged
0xB10C merged 1 commit into
bitcoin-data:mainfrom
b10claude:add-bitcoin-node-census
Nov 6, 2026
Merged

0xB10C merged 1 commit into
bitcoin-data:mainfrom
b10claude:add-bitcoin-node-census

Conversation

@b10claude

Copy link
Copy Markdown

Adds datasets/bitcoin-node-census.toml.

Sources

Every claim in the entry, and what backs it.

What one record is

  • https://census.yonson.dev/census.jsonl fetched directly: 145 lines, one JSON
    object per line, oldest census 2025-06-14, newest 2026-11-03.
  • Fields confirmed against docs/census.schema.json in the repository, whose
    title is CensusReport, "A census report containing statistics from a network
    crawl": census_version, timestamp ("When the census was taken (Unix
    timestamp in seconds)"), duration_seconds, total_contacted ("Total number
    of nodes contacted (listening + non-listening)") and stats.
  • stats carries total_nodes, v2_transport ("Nodes supporting v2 transport
    (BIP-324)"), compact_filters ("Nodes supporting compact block filters
    (BIP-157/158)") and v2_and_filters, then repeats those four counts per
    entry of connection_types: ipv4, ipv6, tor_v2, tor_v3, i2p, cjdns, unknown.
  • The two oldest records predate connection_types; 143 of 145 have it. Six
    census_version values appear across the file, so the schema has evolved.

Where it comes from

  • The repository README: "Crawl the bitcoin network and aggregate stats for easy
    tracking. Data published at census.yonson.dev". The crawler is Rust
    (Cargo.toml, src/).
  • The NixOS module in the README configures a single seedNode with an address
    and port, plus concurrent and interval. That is the basis for "walks
    outward from one seed node"; it is not a DNS-seed-based crawl.
  • The README also notes a census "can take several hours"; observed
    duration_seconds across the file range from under an hour to 25.7 hours, so
    the entry states no cadence.

The caveat

  • Across all 145 records, the only connection types ever reporting a non-zero
    total_nodes are ipv4 and ipv6. The tor_v2, tor_v3, i2p and cjdns
    buckets are present in every record and always zero, which is why the entry
    says those nodes are not reached. That matters when comparing these counts
    with crawlers that do connect over those networks: for the same period,
    sources counting onion nodes report roughly twice as many reachable nodes.

Licence

  • LICENSE in the repository is CC0 1.0 Universal, and the published page links
    https://creativecommons.org/publicdomain/zero/1.0/. GitHub's own detection
    reports NOASSERTION for this file, so the licence field follows the file, not
    the detector.

Author

  • GitHub user nyonson, display name "Nick Johnson", who also runs the
    yonson.dev domain the data is published on.

Not verified / left out

  • census.labs.yonson.dev, mentioned in the README as a second publication
    point, does not resolve, so it is not linked.
  • Whether the data file is regenerated in place or appended to; the entry only
    says a line is added per run, which the file's structure supports.
  • How the crawler decides a node is reachable, beyond completing a handshake.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EQFKPv3mB1J6LFakJnjNsd

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Dataset preview (1 changed entry)

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

Bitcoin node census

/datasets/bitcoin-node-census/

One JSON object per crawl, giving reachable node counts with how many support v2 transport and compact block filters, split by connection type, plus the crawl's duration and total nodes contacted. A Rust crawler walks outward from one seed node and appends a line per run. Useful for tracking feature adoption; onion, I2P and CJDNS nodes are not reached, though the schema has buckets for them.

Field Value
Category P2P network
Format JSON Lines
License CC0 1.0
Author Nick Johnson (nyonson)
Tags crawler, mainnet, nodes, p2p, reachable-nodes
Description 3 sentences, 66 words

Links, in the order they will render:

Generated by ci/preview.py.

@0xB10C
0xB10C merged commit 0fcc5c9 into bitcoin-data:main Nov 6, 2026
2 checks passed
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