Skip to content

docs: add task headings to the services guide - #260

Merged
prusnak merged 1 commit into
masterfrom
docs-update
Nov 14, 2026
Merged

prusnak merged 1 commit into
masterfrom
docs-update

Conversation

@prusnak

@prusnak prusnak commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Assisted-by: OpenAI Codex (GPT-6)

Assisted-by: OpenAI Codex (GPT-6)
@github-actions github-actions Bot added the area: docs docs/, README, examples/, SECURITY.md, book.toml, assets label Nov 14, 2026
@prusnak
prusnak enabled auto-merge November 14, 2026 22:02
@prusnak
prusnak merged commit f91deea into master Nov 14, 2026
19 checks passed
@prusnak
prusnak deleted the docs-update branch November 14, 2026 22:06
@seberm seberm added this to the v0.1.6 milestone Nov 15, 2026
prusnak added a commit that referenced this pull request Nov 16, 2026
Target release: **0.2.0**. Merge after the **v0.1.6 release**.

Replace `services.bitcoind.regtest` with a writable
`services.bitcoind.network` enum: `"mainnet"` (default) or `"regtest"`.
Service modules and VM scenarios use this selection while preserving
existing ports, daemon network names and data paths. The old boolean
forwards to the new option during migration, so existing regtest
configurations receive the Mempool notice and correct historical cookie
and electrs paths. Continued use after updating the config version emits
a deprecation warning.

Replace the positional `services.bitcoind.makeNetworkName` helper with
`nix-bitcoin.lib.networkName`. In modules that take `config`, bind
`nbLib = config.nix-bitcoin.lib;`. Callers specify only names to
override; other names pass through unchanged:

```nix
nbLib.networkName { mainnet = "bitcoin"; }
```

Mempool 3.3.2 supports regtest, but the module previously configured it
as mainnet even when connected to a regtest node. Its backend now
follows `services.bitcoind.network`. On regtest, frontend defaults
select the same network using `MAINNET_ENABLED`, `REGTEST_ENABLED` and
`ROOT_NETWORK`, keeping the site and API at their existing URLs. Mainnet
uses the unchanged packaged frontend, avoiding an unnecessary Angular
rebuild. Explicit frontend settings remain overridable. Existing regtest
deployments receive a 0.2.0 migration notice covering automatic cache
clearing and custom frontend settings.

Include release and upgrade notes, the example config-version update,
configuration tests for network selection, helper overrides and
migrations, and VM checks for the served Mempool frontend configuration
and regtest genesis block through its API.

Charge-LND now receives explicit certificate and macaroon paths instead
of staging symlinks under a synthetic mainnet directory. Remove its
unused state directory and setup script. Default deployments need no
changes; configurations selecting credentials through `--lnddir` in
`extraFlags` receive a targeted 0.2.0 migration notice only if either
`--tlscert` or `--macaroon` is missing.

Migration notices use the per-change files introduced in #257, including
updated network paths in historical notices. Release and upgrade entries
follow #259's heading convention; #260's services guide changes are
preserved.

Validation after rebasing onto `master` (`72e6be0`):
- `nix flake check --all-systems`, the docs build, and shellcheck
passed.
- Full `default` (mainnet) VM suite passed with the updated dependency
pins, RTL certificate-pinning checks, and Tor-enforcement tests.
- The first `netnsRegtest` run failed after LND 0.21.8 panicked during a
stop in the configuration-replacement test (`unable to subscribe to
chans: subscription server shutting down`). LND recovered, but the later
clean-exit test detected the failure recorded in the journal. A full
rerun passed without code changes.
- The final master updates only pin the deployment examples to v0.1.6
and update AGENTS.md release-version guidance; they leave the tested
modules and VM scenarios unchanged.
- Direct evaluation of a legacy regtest configuration confirmed the new
0.1.6 RTL/Tor notices appear alongside all three 0.2.0 migration notices
in version order.
- The versioning collector, 0.1.6 notices and documentation, dependency
pins, and upstream RTL/security changes are preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs docs/, README, examples/, SECURITY.md, book.toml, assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants