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>withlistcurrencyrates <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. currencyconvertstill takesamountandcurrency, for examplelightning-cli currencyconvert 10 USD, but itsmsatresult is now a JSON number rather than a string with anmsatsuffix. The median is now calculated from fiat prices before conversion.- Rename
add-sourceanddisable-sourceinservices.clightning.extraConfigtocurrencyrate-add-sourceandcurrencyrate-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_methodargument fromrebalanceRPC calls; it is no longer accepted. - Remove
rebalance-getroute,rebalance-maxhopsandrebalance-msatfactorfromservices.clightning.extraConfigand 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: itsgetroute_method,maxhops_thresholdandmsatfactorfields 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";.