Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Upgrading to config version 0.1.2

bitcoind’s RPC authentication cookie now lives at /run/bitcoind/.cookie for both mainnet and regtest. The runtime directory allows the bitcoind service group to read the cookie while preventing group members from replacing it.

Update external RPC clients and scripts that read /var/lib/bitcoind/.cookie or /var/lib/bitcoind/regtest/.cookie to use /run/bitcoind/.cookie. If you set services.bitcoind.dataDir, the old cookie was under that directory instead. For clients running in containers or filesystem sandboxes, update any bind mounts or allowed paths for cookie access as well.

The bitcoin-cli installed by bitcoinix reads the new path from bitcoin.conf automatically. Services configured by bitcoinix use RPC credentials and need no cookie path changes.

An old cookie can remain in the data directory after an unclean shutdown before the upgrade. Once the upgraded bitcoind is running, that old cookie is stale and can be removed. bitcoind creates a new cookie in /run/bitcoind each time it starts.

mempool backend listen address

The mempool backend now listens on services.mempool.address (default 127.0.0.1) instead of all interfaces. With network namespace isolation enabled, it listens on its namespace address. Access through the nginx frontend is unchanged. If you access the backend API directly from another host, set services.mempool.address to the node’s LAN or VPN address.

MariaDB listens on localhost by default

The MariaDB server enabled by mempool now listens on 127.0.0.1 by default. mempool itself uses MariaDB’s Unix socket and needs no connection changes. If other clients access this database server over the network, explicitly set services.mysql.settings.mysqld.bind-address to the desired listen address. Existing explicit values of this option take precedence over the new default.

LND restarts after a clean exit

LND now restarts automatically after a clean exit, so it can recover after its chain backend health check shuts it down. By default, lncli stop also causes LND to restart after 10 seconds. To keep LND stopped for maintenance, use sudo systemctl stop lnd and update any scripts that relied on lncli stop leaving it down. Start it again with sudo systemctl start lnd when maintenance is complete.

BTCPay Server restricts requests to private networks

BTCPay Server 2.4.5 blocks outbound requests to private network addresses by default to prevent server-side request forgery. This affects webhooks, invoice notification URLs and LNURL requests that point to localhost, LAN or VPN addresses. The Lightning node that bitcoinix configures for BTCPay Server is unaffected. To allow specific private destinations, list them in BTCPay’s ssrfexceptions setting:

systemd.services.btcpayserver.environment.BTCPAY_SSRFEXCEPTIONS = "192.168.1.50:8443;10.8.0.0/24";

Entries are exact hostnames, IP addresses or CIDR ranges, optionally with a port, separated by ; or ,.

Keep each exception as narrow as possible: one address with its port, or the smallest range that covers the destination. Never list the ports of node services such as the LND REST API or the bitcoind RPC. Anyone who can set a webhook, a notification URL or a Lightning address in BTCPay can make it send requests to every listed destination. A hostname entry trusts every address the hostname resolves to, so list only hostnames whose DNS you control.

After updating any affected clients and settings, set nix-bitcoin.configVersion = "0.1.2";.