LIGHTNING-DOWNGRADE(8)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

πŸ’… lightning-downgrade(8) β€” the girl's guide to going backwards

okay so bestie, welcome to lightning-downgrade β€” the manual page for the actual tool called lightning-downgrade. yes it's a whole thing, and yes it's about to be your new hyperfixation πŸŽ€

✨ SYNOPSIS ✨

lightning-downgrade [ARGUMENTS]...

🌸 DESCRIPTION 🌸

lightning-downgrade un-does an upgrade by modifying the lightningd database back to the prior version. the way that it works is lowkey iconic. but β€” and this is the important part, so like, listen β€” lightningd must not be running at the time. not running. at all. not even a little bit. πŸ’€

ngl, a downgrade might genuinely not be possible if some new feature got used that's incompatible with the older version. in that case the downgrade fails with a message and nothing gets changed β€” so like, no harm done, but also no downgrade. it's giving "we tried, we failed, we moved on" 😭

rule numero uno: use the latest lightning-downgrade to downgrade. fr fr. for example, the v25.12 lightning-downgrade won't know how to downgrade v26.06. like, it simply doesn't have the range, bestie.

good news though β€” all minor versions are compatible, so a downgrade to v25.09 will work fine with v25.09.1 or v25.09.2, etc. slay ✨


πŸ¦‹ VERSIONS πŸ¦‹

  • v25.12 β€” downgrades to v25.09.
    • downgrade is not possible if withhold true has been used with fundchannel_complete, or if askrene-bias-node has been used. 🚫
  • v25.09 β€” downgrade is not supported. that's it. that's the whole entry. πŸ’€

πŸ’œ OPTIONS πŸ’œ

okay this is the part where she pulls out the whole menu, and yes we're listing every single one πŸ’…

  • --lightning-dir=DIR β€” sets the directory for the lightning daemon we're talking to; defaults to $HOME/.lightning.
  • --conf=PATH β€” sets the configuration file (default: lightning-dir/config ).
  • --network=network β€” sets the network explicitly.
  • --mainnet β€” sets the network explicitly.
  • --testnet β€” sets the network explicitly.
  • --testnet4 β€” sets the network explicitly.
  • --signet β€” sets the network explicitly.
  • --regtest β€” sets the network explicitly.
yeah, those six all do the "sets network explicitly" thing. they're a little squad. 🫢
  • --rpc-file=FILE β€” the named pipe used to talk to the lightning daemon; default is lightning-rpc in the lightning directory.
  • wallet=DSN β€” identifies the location of the wallet. for the details, go read lightningd-config(5). (note: no dashes on this one, she's built different πŸŽ€)
  • --help/-h β€” pretty-prints a summary of options to standard output and exits. the format can be changed using -F, -R, -J, -H etc. cute AND customizable.
  • --version/-V β€” prints the version number to standard output and exits.

πŸ› BUGS πŸ›

you should report bugs on our github issues page β€” and maybe submit a fix to gain our eternal gratitude! πŸ‘‘ like, actual eternal gratitude. we will remember you forever.


🧚 AUTHOR 🧚

Rusty Russell <rusty@rustcorp.com.au> wrote the initial version of lightning-downgrade and this man page. main character energy fr fr 🌟


πŸ”₯ SEE ALSO πŸ”₯

lightningd(8), lightningd-config(5)


🌈 RESOURCES 🌈

main web site: https://github.com/ElementsProject/lightning


πŸ’– COPYING πŸ’–

note: the modules in the ccan/ directory have their own licenses, but the rest of the code is covered by the BSD-style MIT license. main web site: https://github.com/ElementsProject/lightning


ok that's the whole page bestie, you ate that 🫢✨

πŸ’… Core Lightning v26.06.9 β€” mwah, that's a wrap, go downgrade responsibly πŸ’…

πŸ“¦ where this page comes from