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.5

Currencyrate, rebalance and mempool’s settings.CORE_RPC.PASSWORD each have a migration notice. Review the changes for each one you use before updating your config version.

Currencyrate plugin replacement

The Python currencyrate plugin has been replaced by Rust cln-currencyrate. Keep services.clightning.plugins.currencyrate.enable = true, but update any custom scripts before deploying:

  • Replace currencyrates <currency> with listcurrencyrates <currency>. The response is now {"currencyrates": [{"source": "…", "amount": 95000.0}, …]}, with amounts in fiat per BTC, replacing the map of source names to msat per fiat unit. Adapt both parsing and units. currencyrate <currency> returns a single median rate in fiat per BTC.
  • currencyconvert still takes amount and currency, for example lightning-cli currencyconvert 10 USD, but its msat result is now a JSON number rather than a string with an msat suffix. The median is now calculated from fiat prices before conversion.
  • Rename add-source and disable-source in services.clightning.extraConfig to currencyrate-add-source and currencyrate-disable-source. Review them against the new plugin’s README. The plugin follows CLN’s configured proxy.

After deploying, check that lightning-cli help currencyconvert and lightning-cli help listcurrencyrates list the new RPCs. A live conversion such as lightning-cli currencyconvert 100 USD also needs reachable price sources.

Rebalance routing changes

The rebalance plugin now uses Core Lightning’s askrene routing. If you enable services.clightning.plugins.rebalance.enable, update custom scripts and configuration before deploying:

  • Remove the getroute_method argument from rebalance RPC calls; it is no longer accepted.
  • Remove rebalance-getroute, rebalance-maxhops and rebalance-msatfactor from services.clightning.extraConfig and any included configuration files. These settings are still accepted with a deprecation warning but are ignored, so they no longer control route selection or hop limits.
  • Update scripts that read rebalancereport: its getroute_method, maxhops_threshold and msatfactor fields have been removed.

mempool RPC password moves to the secrets directory

mempool no longer accepts services.mempool.settings.CORE_RPC.PASSWORD. Its settings are copied to the world-readable Nix store, so evaluation now fails when this option is set. Remove it and save the password to bitcoin-rpcpassword-mempool in the secrets dir. mempool reads it from there at startup, also when it uses bitcoind from another node. Releases before 0.2.0 read bitcoin-rpcpassword-public instead. The old value stays readable in the Nix store until it is garbage-collected, so change the password if untrusted users or services run on the node.

After addressing these changes, set nix-bitcoin.configVersion = "0.1.5";.