Skip to content

rbitcoin: add package and module, and support it as mempool's node - #70

Open
bobberb wants to merge 5 commits into
bitcoinix:masterfrom
bobberb:bobberb/rbitcoin-d69e78ad
Open

bobberb wants to merge 5 commits into
bitcoinix:masterfrom
bobberb:bobberb/rbitcoin-d69e78ad

Conversation

@bobberb

@bobberb bobberb commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #74.

This proposes rbitcoin as a new
service, per the "New services" policy, so the PR doubles as the discussion.
rbitcoin is an experimental Bitcoin full node in Rust with built-in Electrum
and Esplora servers. It is actively developed (dozens of merges a week). I run
it on a mainnet node behind mempool, which is where this module comes from.

What it adds

Package: rbitcoin 0.9.2, from nixpkgs

  • rbitcoin: init at 0.9.2 NixOS/nixpkgs#584178 (rbitcoin: init) is in the pinned nixpkgs at 0.9.2, so
    the PR carries no pkgs/rbitcoin and no override: pkgs/default.nix inherits
    it from pinned, and versions.json lists it as unstable. 0.10.0 arrives
    through a normal nixpkgs update once nixpkgs packages it.
  • 0.9.0 was the first tag with the scripthash reorg fix
    (store: unlink a scripthash reorg from the tail rbitcoin-org/rbitcoin#1021); 0.9.2 also stops IBD from connecting a block
    that re-spends an output already spent lower in the same write. Opening a
    0.9.0 data directory moves it to schema 27, one way (see the docs page).

services.rbitcoin

  • P2P, optionally through Tor. tor.proxy passes --proxy/--onion, and
    secure-node turns it on via enable-tor.nix. rbitcoin sends seed hostnames
    to the proxy instead of resolving them.
  • TCP JSON-RPC (rpc.enable), a Bitcoin Core compatible subset,
    authenticated by a cookie:
    • a root ExecStartPre writes a new cookie on every start, built in a
      root-only temp dir and moved into place; rbitcoin reads a private copy;
    • the rbitcoin-rpc-cookie unit publishes it at
      /run/rbitcoin-rpc/rpc.cookie (mode 0640, group rbitcoinrpc) only while
      every listener on the RPC address is a socket of rbitcoin's own process,
      so a local user squatting the port during the sync never gets it;
    • this runs as root because PrivateUsers hides that group from the
      service.
  • Unix socket at {dataDir}/rpc.sock: always on, mode 0660, and used by
    the operator's rbitcoin-cli wrapper.
  • Electrum (electrum.enable) with the scripthash index and its
    maxShCreates query cap.
  • Hardening: nbLib.defaultHardening with one exception,
    ProcSubset = "all", because the store sizes its caches from
    /proc/meminfo. io_uring is in @system-service (through @aio).
  • Assertions fail evaluation when:
    • a data directory is nested inside bitcoind's, or bitcoind's inside it;
    • a listener collides with bitcoind, electrs or fulcrum. Without netns
      isolation they all default to 127.0.0.1 on Core's ports, and rbitcoin only
      warns when its RPC listener fails to bind.
  • Integration: a netns entry (id 35; netns-isolation now rejects two
    entries with the same id), nodeinfo, a docs page (docs/service/rbitcoin.md,
    linked from docs/services.md and SUMMARY.md), the README and the examples.

mempool

  • electrumServer = "rbitcoin" makes rbitcoin mempool's node and Electrum
    server.
  • mempool reads the cookie from COOKIE_PATH, so it picks up the new cookie
    after a 401.
  • bitcoind's txindex, and mempool's own bitcoind RPC user and secrets (clightning, mempool: connect to bitcoind as their own RPC users #277),
    are set up only for the electrs/fulcrum backends. On rbitcoin, mempool has no
    bitcoind user; a test checks that its secret isn't created.
  • Client addresses now go through nbLib.address (a no-op for the existing
    defaults).
  • netns connections follow the selected backend.

Tests

  • regtest and netnsRegtest: rbitcoin syncs from bitcoind, its only
    peer, and must report the same tip hash; RPC is socket-only.
  • New rbitcoinMempool scenario:
    • the cookie's mode and group;
    • cookie auth accepted and wrong credentials rejected over TCP RPC;
    • the Electrum tip height;
    • an Electrum-backed scripthash lookup through mempool;
    • mempool following a new block after rbitcoin restarts with a new cookie.
  • CI: rbitcoinMempool is added to the basic set and the CI matrix,
    because it's the only scenario for electrumServer = "rbitcoin".
  • Test VM disk: 4 GiB when rbitcoin is enabled. rbitcoin's store takes
    ~900 MB at 100 regtest blocks.

Rebased on master (7a6dc3b) and squashed into three commits: the netns-isolation
unique-id check, the rbitcoin module with the mempool backend and tests, and the docs.
Apart from master's #347, the tree at 5645899 is 524b775's plus a docs note on the Electrum port without netns
isolation. On 5a8d756, each commit passed checks.x86_64-linux.module-config and evaluated
.#ciTestInfo.

Tested at b97809e (the 0.10.0 override reverted; tree identical to 5645899):

  • pinned.rbitcoin evaluates to the same store path as nixpkgs' rbitcoin 0.9.2
    at the locked rev (78cc855f);
  • checks.x86_64-linux.module-config and test/ci/check-versions.sh: passed.

Tested locally at 524b775, with nixpkgs' rbitcoin 0.9.2:

  • ./test/run-tests.sh -s netns, rbitcoinMempool and netnsRegtest:
    passed;
  • nix eval .#ciTestInfo (what build_test_drivers evaluates): passed. Before
    the fix it failed with attribute 'rbitcoin' missing, because
    test.data.rbitcoin read rbitcoin's netns address in scenarios without
    rbitcoin;
  • all seven checks.x86_64-linux and ./test/shellcheck.sh: passed.

Tested locally on 0.9.0:

  • ./test/run-tests.sh (default, netns, netnsRegtest, rbitcoinMempool);
  • rbitcoinMempool again with rbitcoin's own static musl build in place of the
    package;
  • nix flake check --all-systems and ./test/shellcheck.sh.

Known limitations

Independent of #69, which fixes the mempool backend's bind address.

🤖 Generated with Claude Code

@bobberb

bobberb commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator Author

Hello all. Here running rbitcoin for a few weeks on my node. Bitcoin-core should be swappable or running simultaneously to any list of nodes per user desire (btcd, bitcoin-js, whatever full node). Low priority pull. I'll keep running it locally for sure.

Rbitcoin

@bobberb

bobberb commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator Author

Oh yeah it's a low resource drop in core/electrs in short

@bobberb
bobberb marked this pull request as draft October 17, 2026 03:29
@bobberb
bobberb force-pushed the bobberb/rbitcoin-d69e78ad branch from feae5be to fc5407b Compare October 17, 2026 22:52
@prusnak prusnak added type: feature New capability or service area: modules modules/ and pkgs/lib.nix area: packages pkgs/ and flake pins status: needs decision Waiting on a maintainer decision labels Oct 19, 2026
@bobberb
bobberb force-pushed the bobberb/rbitcoin-d69e78ad branch from fc5407b to 6db85a0 Compare October 23, 2026 23:16
@github-actions github-actions Bot added area: ci .github/, test/, dev/ area: docs docs/, README, examples/, SECURITY.md, book.toml, assets labels Oct 23, 2026
@bobberb bobberb self-assigned this Oct 24, 2026

@ostermayer ostermayer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the module, the mempool wiring and the package against rbitcoin cc07062. The package is pinned by revision and hash and the cargo vendor hash is fixed, so nothing fetches at build time. Four things worth a change:

  1. mempool gets rbitcoin's admin credential. modules/mempool.nix:385 puts the mempool user in rbitcoinrpc, which reads the cookie. rbitcoin's RPC has one bearer token and one optional cookie (crates/rbitcoin-rpc/src/auth.rs) and no method restriction per credential, so the dispatcher in methods/mod.rs:494 serves stop, invalidateblock and the rest to anyone with the cookie. With bitcoind, mempool only holds the whitelisted public user. A compromised explorer backend can stop the node or invalidate blocks. rbitcoin has no restricted credential to hand out today, so either say so in the electrumServer docs and the rpc.enable description, or ask upstream for a read-only token and gate the option on it.

  2. modules/rbitcoin.nix:286: the root cookie script works on paths the service user owns. /run/rbitcoin is the unit's RuntimeDirectory, owned by rbitcoin, so that user can make it listable and replace $tmp with a symlink between mktemp and the printf, chown and chmod that follow by path. Root then writes the cookie into the target and hands it to the service user. The window needs a process running as that user while ExecStartPre runs, which systemd's cgroup kill makes rare, but it is the pattern the lnd macaroon fix removed. Build the file in a root-only mktemp -d under /run, set owner and mode there, and mv -fT it into place.

  3. modules/rbitcoin.nix:294: escapeShellArgs doesn't protect an ExecStart line. systemd expands % specifiers and $VAR inside quotes too, so an extraArgs entry such as --alert-notify=echo %s loses its placeholder. utils.escapeSystemdExecArgs does the right escaping.

  4. netns id 33 is also claimed by #141 (modules/netns-isolation.nix). Whichever PR merges second needs a new id.

Checked and fine: the cookie keeps Core's format and mode 0640 with --rpc-cookie-perms group, the unix socket stays in the 0750 data dir, mempool reads the cookie by path so it survives the regeneration on restart, txindex is no longer forced on bitcoind when rbitcoin is the node, the port collision assertions cover bitcoind, electrs and fulcrum, and the data dir assertion keeps the two nodes apart.

GLM 5.3 run at max reasoning reviewed the tree at 8bc4bd9 and found nothing in the files this PR changes. DeepSeek V4.1 Flash 1017 run at max reasoning timed out without a verdict. Codex (GPT-6 Astra, xhigh) read the diff and raised the first three points, which I checked against the module and rbitcoin's auth.rs, server.rs and methods/mod.rs.

@bobberb
bobberb marked this pull request as ready for review October 24, 2026 21:57
@bobberb

bobberb commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

It runs my Sparrow backend, it runs my mempool.space backend, the project lead is pushing for production-ready status soon, so I'm putting this PR out there.

I think this is especially important with knots being removed to have an alternative client.

@bobberb

bobberb commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@ostermayer thanks for the review
@seberm @prusnak if you haven't heard of this project, it's really slick. It's on this Stephen Livera episide:

https://www.stephanlivera.com/775

@bobberb

bobberb commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@reardencode hello world :D

@prusnak

prusnak commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

I am following the development closely. I think rbitcoin is a nice project.

Let's wait until 0.9.0 is released and then let's get it into nixpkgs. Then we can split this PR into smaller PR where we discuss individual steps.

@bobberb

bobberb commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

Yeah, upstream to nixpkgs definitely preferred. I encourage everyone who wants to try it to branch off this PR - I run this legit as my main now! I'll talk to Brandon about upstreaming to nixpkgs I'm sure he's in support after 0.9/1.0.

@ostermayer

Copy link
Copy Markdown
Collaborator

I read 8c9c72e. It fixes the four points from my review: the cookie is written in a root-only mktemp -d /run/rbitcoin-cookie.XXXXXX directory and moved into place with mv -fT, the ExecStart arguments go through utils.escapeSystemdExecArgs, the netns id is 34, and the module and docs/services.md say the cookie is an admin credential. Parking the PR until rbitcoin 0.9.0 is in nixpkgs works for me.

Models: GLM 5.3 (max) and Codex (GPT-6 Astra, xhigh) reviewed the tree at 8c9c72e and found nothing in the files this PR touches. GLM's one finding was in modules/mempool.nix and is #133. DeepSeek V4.1 Flash 1017 (max) timed out at the provider twice and gave no result.

@bobberb

bobberb commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator Author

NixOS/nixpkgs#584178

@prusnak prusnak added the status: rebase needed Merge conflicts need to be resolved label Nov 11, 2026
@github-actions github-actions Bot added status: rebase needed Merge conflicts need to be resolved and removed status: rebase needed Merge conflicts need to be resolved labels Nov 15, 2026
@prusnak

prusnak commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@bobberb

bobberb commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

ALERT THE TROOPS - WE HAVE A NIXPKGS MERGE -HUZZAH

@github-actions github-actions Bot added the size: XL 500–999 changed lines (additions + deletions) label Nov 24, 2026
@bobberb
bobberb force-pushed the bobberb/rbitcoin-d69e78ad branch 2 times, most recently from c8fd2cb to f56a263 Compare November 26, 2026 19:38
@github-actions github-actions Bot added status: rebase needed Merge conflicts need to be resolved and removed status: rebase needed Merge conflicts need to be resolved labels Nov 26, 2026
@prusnak prusnak modified the milestones: v0.2.1, v0.2.2 Nov 27, 2026
@bobberb
bobberb force-pushed the bobberb/rbitcoin-d69e78ad branch from f56a263 to 524b775 Compare November 29, 2026 03:47
@github-actions github-actions Bot removed the status: rebase needed Merge conflicts need to be resolved label Nov 29, 2026
@bobberb

bobberb commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

Rebased on master (5a8d756) and pushed 524b775. Changes since f56a263:

  • CI fix (5f7ea9d): build_test_drivers failed to evaluate the netns scenario with attribute 'rbitcoin' missing. test.data.rbitcoin.rpcPortOwnedBy forced rbitcoin.rpc.portOwnedBy, whose script reads netns.rbitcoin.address, and netns-isolation defines that only for enabled services. test.data.rbitcoin is now optionalAttrs cfg.rbitcoin.enable, like orchard and cdk-mintd. The Python tests read it only when rbitcoin runs.
  • Docs split: master moved the service guides into docs/service/, so the rbitcoin section is now docs/service/rbitcoin.md, with the same text. It is linked from a new "Bitcoin nodes" entry in docs/services.md and from SUMMARY.md. The README, examples/configuration.nix and the 0.2.1 release note point to the page.
  • rbitcoin from nixpkgs (524b775): rbitcoin: init at 0.9.2 NixOS/nixpkgs#584178 is in the pinned nixpkgs. Its 0.9.2 has the same source and cargo hashes and builds the same two binaries, so pkgs/rbitcoin is dropped. pkgs/default.nix pins nixpkgs' package with the other unstable ones (versions.json and the versions table regenerated: channel unstable). It comes from cache.nixos.org, so CI builds no Rust.
  • The rebase conflicts in enable-tor.nix (orchard and rbitcoin), test/tests.nix (the test packages list) and docs/versions-table.md keep both sides. The table matches helper/gen-docs-versions.sh.
  • The release note was already in docs/release-notes/0.2.1/.

Tested locally at 524b775:

  • ./test/run-tests.sh -s netns, rbitcoinMempool and netnsRegtest: passed. The logs show the cookie auth, wrong-credential and port-squatter checks in rbitcoinMempool, and the tip check in netnsRegtest;
  • nix eval .#ciTestInfo: passed, and it failed before 5f7ea9d;
  • all seven checks.x86_64-linux and ./test/shellcheck.sh: passed.

In CI, build_test_drivers now passes; the scenario jobs are still running. The PR description is updated to match.

Assisted-by: Claude Code (claude-opus-5-5)

@sebsgent sebsgent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No must-fix items. One should:

  • Should: the 20 commits land on master as they are, and several record intermediate states that are wrong on master: 39d144e gives rbitcoin netns id 34, which unbeholden-lnurl already uses (fixed only in 837500f); pkgs/rbitcoin is added, bumped five times and removed in 524b775; 673ec08 says the module passes --rpc-cookie-perms group, but the final code passes owner. Please squash them into logical commits, e.g. the netns-isolation unique-id check, the rbitcoin module with the mempool backend and tests, and the docs.

Optional: without netns isolation, the Electrum port opens hours after the RPC port (once the address index is built), while mempool is already running. A local user listening on it first would see which addresses are looked up in the explorer and could answer with forged data. electrs and fulcrum likely share this, so a docs note recommending netns isolation would be enough.

Tested: CI green at 524b775. Ran the uncovered combination locally, mempool on rbitcoin with netns isolation (netnsBase + rbitcoinMempool): passed, including rbitcoin-mempool. Checked against the 0.9.2 source that seed hostnames go through the SOCKS proxy and are never looked up locally.

Assisted-by: Claude Code (Claude Opus 5.5)

@seberm
seberm requested review from ostermayer and prusnak November 29, 2026 10:21
@seberm

seberm commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Hi @prusnak, @ostermayer, I've moved the milestone to v0.2.2 because I'm not sure this will be finished before the v0.2.1 release. Could you please review it? We may still make it in time, but I'd rather not rush it.

Thanks!

@bobberb
bobberb force-pushed the bobberb/rbitcoin-d69e78ad branch from 524b775 to 4af3362 Compare November 29, 2026 18:55
@bobberb

bobberb commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the review. Squashed and force-pushed 4af3362, on the same base (master 5a8d756):

  1. 3932a20 netns-isolation: reject entries that share an id
  2. 8b966a8 rbitcoin: add module, and support it as mempool's node
  3. 4af3362 docs: add the rbitcoin service

The message of the second commit describes the final code: id 35, rbitcoin from nixpkgs, --rpc-cookie-perms owner, and the published cookie at /run/rbitcoin-rpc/rpc.cookie. The tree is the same as 524b775 except for the docs note below.

On the optional point: I checked it against the code. mempool waits only for the RPC cookie (modules/mempool.nix, mempool-start), and the Electrum port opens later, once the address index is built. docs/service/rbitcoin.md now says so in the address-index item, and recommends netns isolation when other users have accounts on the host.

Checked locally:

  • each of the three commits on its own: checks.x86_64-linux.module-config and nix eval .#ciTestInfo pass;
  • at the tip: all seven checks.x86_64-linux, ./test/shellcheck.sh and test/ci/check-versions.sh pass.

I did not rerun the VM tests, since the code is the same as the 524b775 run.

#284 is rebased onto these three commits (166d9c4).

Assisted-by: Claude Code (claude-opus-5-5)

bobberb and others added 3 commits November 29, 2026 14:01
Nothing checked that the ids were unique, so rbitcoin and unbeholden-lnurl
both evaluated with id 34 after a rebase and got the same address.
Check all entries, enabled or not, so a clash in the modules shows up in
the module-config check rather than only on a node running both.

Assisted-by: Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`services.rbitcoin` runs rbitcoin 0.9.2 from nixpkgs, with its own data
directory:
- P2P, optionally through Tor (`tor.proxy`, set by secure-node.nix via
  enable-tor.nix; seed lookups go to the proxy too).
- A Core-compatible JSON-RPC over TCP (`rpc.enable`), authenticated by a
  cookie. rbitcoin writes a new one on every start, readable only by
  itself (`--rpc-cookie-perms owner`).
- The unit `rbitcoin-rpc-cookie` publishes that cookie for clients at
  /run/rbitcoin-rpc/rpc.cookie, group `rbitcoinrpc`. rbitcoin binds its RPC
  port only after catch-up, hours or days after the start on mainnet, and
  until then any local user could listen on the port without netns
  isolation and receive the cookie from a client. So the unit publishes it
  only while every listener that would take a client's connection is a
  socket of rbitcoin's main process, matched by inode against
  /proc/<pid>/fd, not by process name, which any user can fake in `ss -p`
  output. It keeps watching, removes the cookie if rbitcoin loses the
  port, and the cookie goes away with its runtime directory when rbitcoin
  stops. It runs as root because clients run with PrivateUsers.
- The unix socket at {dataDir}/rpc.sock, always on, used by the operator's
  `rbitcoin-cli` wrapper.
- Electrum (`electrum.enable`) with the scripthash index and its
  `maxShCreates` query cap.
- nbLib.defaultHardening, except ProcSubset=all: the store sizes its caches
  from /proc/meminfo.
- Assertions against data directories nested with bitcoind's, and against
  listeners that collide with bitcoind, electrs or fulcrum (all default to
  127.0.0.1 and Core's ports without netns isolation).

`services.mempool.electrumServer = "rbitcoin"` makes rbitcoin mempool's node
and Electrum server. mempool joins `rbitcoinrpc`, waits for the published
cookie in ExecStart (so no start job blocks during the sync) and reads it
from COOKIE_PATH, so it picks up a new cookie after an HTTP 401. It gets no
bitcoind RPC user, and bitcoind's txindex is only forced for the
electrs/fulcrum backends.

netns-isolation gets an rbitcoin namespace (id 35); mempool's connections
follow its backend. nodeinfo lists rbitcoin. versions.json and the docs
versions table list it.

Tests:
- `regtest` (and `netnsRegtest`): rbitcoin syncs from bitcoind as its only
  peer and must report the same tip hash; socket-only RPC.
- New `rbitcoinMempool` scenario, added to the basic/CI set: cookie mode and
  group, cookie auth accepted and wrong credentials rejected over TCP RPC,
  Electrum tip height, an Electrum-backed scripthash lookup through mempool,
  mempool following a new block after rbitcoin restarts with a new cookie,
  and no bitcoind RPC user for mempool. A process named `pid=1,` holds the
  RPC port as `nobody`: the cookie stays unpublished, neither cookie reaches
  it, and a crash removes the cookie until the next instance holds the port.
- Test VMs get a 4 GiB disk when rbitcoin is enabled (~900 MB at 100
  regtest blocks).

Assisted-by: Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A page at docs/service/rbitcoin.md, listed in services.md and SUMMARY.md,
covers ports, the admin cookie, the data directory, one-way upgrades, the
address index, RPC readiness, Tor, the large-address cap and netns
isolation. It also says that without netns isolation the Electrum port
opens hours after mempool starts, so a local user could take it first.
README, the example config and a 0.2.1 release note link to it.

Assisted-by: Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bobberb
bobberb force-pushed the bobberb/rbitcoin-d69e78ad branch from 4af3362 to 5645899 Compare November 29, 2026 19:10
@bobberb

bobberb commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

Master moved to 7a6dc3b (#347), so I rebased again: the three commits are now bc102ae (unique-id check), 71f484a (rbitcoin module) and 5645899 (docs). #347 is docs only and touches none of this PR's files.

Since #347 now explains the port takeover under network namespace isolation, the Electrum note in docs/service/rbitcoin.md links to that section. It also says the port is open to takeover while rbitcoin restarts, not only before the index is ready.

At 5645899, nix eval .#ciTestInfo, module-config and docs-tools pass. #284 is rebased onto it (4625db6).

Assisted-by: Claude Code (claude-opus-5-5)

nixpkgs still has 0.9.2, so pkgs/default.nix overrides its package with
the v0.10.0 source and cargoHash until it catches up; versions.json lists
it as local again.

0.10.0 rewrites a 0.9 data directory to store schema 31 in place, with no
reindex, and 0.9 refuses it afterwards. Its peers file also has a header
0.9 doesn't read. No bitcoinix release has shipped rbitcoin yet, so no
migration notice; the service page says so for later rollbacks.

Every flag the module passes is unchanged
(https://github.com/rbitcoin-org/rbitcoin/blob/v0.10.0/CHANGELOG.md).

Assisted-by: Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bobberb

bobberb commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

Bumped rbitcoin to 0.10.0, released today, in a new commit on top of the three: 59b8234 (rbitcoin: 0.9.2 -> 0.10.0).

  • nixpkgs still has 0.9.2, so pkgs/default.nix overrides its package with the v0.10.0 source and cargoHash, marked TODO-EXTERNAL. versions.json lists it as local until nixpkgs catches up.
  • I checked the changelog and rbitcoin-node --help: every flag the module passes is unchanged.
  • 0.10.0 rewrites a 0.9 data directory to schema 31, one way, and its peers file has a header 0.9 doesn't read. No bitcoinix release has shipped rbitcoin, so there's no migration notice. docs/service/rbitcoin.md covers rollbacks, and the 0.2.1 release note says 0.10.0.
  • 0.10.0 is not on cache.nixos.org, so CI builds rbitcoin from source for now.

Tested locally at 59b8234:

  • the package builds and prints 0.10.0;
  • netns, rbitcoinMempool and netnsRegtest: passed, each test closure with rbitcoin 0.10.0;
  • all seven checks.x86_64-linux, shellcheck, check-versions and ciTestInfo: passed.

#284 is rebased onto it.

Assisted-by: Claude Code (claude-opus-5-5)

@prusnak

prusnak commented Nov 30, 2026

Copy link
Copy Markdown
Contributor
  • nixpkgs still has 0.9.2, so pkgs/default.nix overrides its package with the v0.10.0 source and cargoHash, marked TODO-EXTERNAL. versions.json lists it as local until nixpkgs catches up.

JFYI rbitcoin 0.10.0 will hit nixos-unstable soon - see https://pr.bitcoinix.net/?pr=595405

@bobberb

bobberb commented Nov 30, 2026 via email

Copy link
Copy Markdown
Collaborator Author

This reverts commit 59b8234.

Track nixpkgs' rbitcoin instead of overriding its source. The locked
nixpkgs (78cc855f) has 0.9.2, so pkgs/default.nix inherits `rbitcoin`
from `pinned` again and versions.json lists it as unstable. 0.10.0 comes
in through a normal nixpkgs update once nixpkgs packages it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the status: rebase needed Merge conflicts need to be resolved label Dec 1, 2026
@seberm

seberm commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

bobberb added a commit to bobberb/bitcoinix that referenced this pull request Dec 3, 2026
This reverts commit 59b8234, as bitcoinix#70
does: track nixpkgs' rbitcoin (0.9.2 at the locked rev) instead of
overriding its source. rbitcoin.space 0.5.0 is built and tested upstream
against rbitcoin 0.9.2, so the module needs no change.

The conflicts are the adjacent rbitcoin-space entries in pkgs/default.nix
and docs/versions-table.md; the table is regenerated from versions.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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

area: ci .github/, test/, dev/ area: docs docs/, README, examples/, SECURITY.md, book.toml, assets area: modules modules/ and pkgs/lib.nix area: packages pkgs/ and flake pins size: XL 500–999 changed lines (additions + deletions) status: needs decision Waiting on a maintainer decision status: rebase needed Merge conflicts need to be resolved type: feature New capability or service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New service: rbitcoin, and as mempool's node

5 participants