Skip to content

Commit b9df67d

Browse files
committed
doc: add a manual page.
In particular, document when downgrades are not possible. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 7a9ff9c commit b9df67d

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

doc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ NON_PREFIXED_MANPAGES := doc/lightning-cli.1 \
161161
doc/lightningd-config.5 \
162162
doc/lightningd-rpc.7 \
163163
doc/lightning-hsmtool.8 \
164+
doc/lightning-downgrade.8 \
164165
doc/lightning-reckless.1
165166

166167
MANPAGES := $(PREFIXED_MANPAGES) $(NON_PREFIXED_MANPAGES)

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Core Lightning Documentation
8686
invoicerequest <invoicerequest.7.md>
8787
keysend <keysend.7.md>
8888
lightning-cli <lightning-cli.1.md>
89+
lightning-downgrade <lightning-downgrade.8.md>
8990
lightning-hsmtool <lightning-hsmtool.8.md>
9091
lightning-reckless <lightning-reckless.1.md>
9192
lightningd <lightningd.8.md>

doc/lightning-downgrade.8.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
lightning-downgrade -- Tool to revert core lightning to an older version
2+
========================================================================
3+
4+
SYNOPSIS
5+
--------
6+
7+
```bash
8+
lightning-downgrade method [ARGUMENTS]...
9+
```
10+
11+
DESCRIPTION
12+
-----------
13+
14+
**lightning-downgrade** reverts an upgrade by modifying the `lightningd`
15+
database back the prior version. `lightningd` must **not** be running
16+
at the time.
17+
18+
A downgrade may not be possible if a new feature has been used that would
19+
be incompatible with an older version. In this case the downgrade will fail
20+
with a message and nothing will be changed.
21+
22+
Use the latest `lightning-downgrade` to downgrade. For example, the `v25.12` lightning-downgrade won't know how to downgrade `v26.06`.
23+
24+
All minor versions are compatible, so a downgrade to v25.09 will work
25+
fine with v25.09.1 or v25.09.2, etc.
26+
27+
VERSIONS
28+
--------
29+
30+
* *v25.12*: downgrades to v25.09.
31+
32+
Downgrade is not possible if `withhold` `true` has been used with `fundchannel_complete`.
33+
34+
* *v25.09*: downgrade is not supported.
35+
36+
OPTIONS
37+
-------
38+
39+
* **--lightning-dir**=*DIR*
40+
41+
Set the directory for the lightning daemon we're talking to; defaults to
42+
*$HOME/.lightning*.
43+
44+
* **--conf**=*PATH*
45+
46+
Sets configuration file (default: **lightning-dir**/*config* ).
47+
48+
* **--network**=*network*
49+
* **--mainnet**
50+
* **--testnet**
51+
* **--testnet4**
52+
* **--signet**
53+
* **--regtest**
54+
55+
Sets network explicitly.
56+
57+
* **--rpc-file**=*FILE*
58+
59+
Named pipe to use to talk to lightning daemon: default is
60+
*lightning-rpc* in the lightning directory.
61+
62+
* **wallet**=*DSN*
63+
64+
Identify the location of the wallet. See lightningd-config(5) for details.
65+
66+
* **--help**/**-h**
67+
68+
Pretty-print summary of options to standard output and exit. The format can
69+
be changed using `-F`, `-R`, `-J`, `-H` etc.
70+
71+
* **--version**/**-V**
72+
73+
Print version number to standard output and exit.
74+
75+
76+
BUGS
77+
----
78+
79+
You should report bugs on our github issues page, and maybe submit a fix
80+
to gain our eternal gratitude!
81+
82+
AUTHOR
83+
------
84+
85+
Rusty Russell <<rusty@rustcorp.com.au>> wrote the initial version of **lightning-downgrade** and this man page.
86+
87+
SEE ALSO
88+
--------
89+
90+
lightningd(8), lightningd-config(5)
91+
92+
RESOURCES
93+
---------
94+
95+
Main web site: <https://github.com/ElementsProject/lightning>
96+
97+
COPYING
98+
-------
99+
100+
Note: the modules in the ccan/ directory have their own licenses, but
101+
the rest of the code is covered by the BSD-style MIT license.
102+
Main web site: <https://github.com/ElementsProject/lightning>

0 commit comments

Comments
 (0)