@@ -19,6 +19,20 @@ import (
19
19
"github.com/spf13/cobra"
20
20
)
21
21
22
+ const forceCloseWarning = `
23
+ If you are certain that a node is offline for good (AFTER you've tried SCB!)
24
+ and a channel is still open, you can use this method to force-close your
25
+ latest state that you have in your channel.db.
26
+
27
+ **!!! WARNING !!! DANGER !!! WARNING !!!**
28
+
29
+ If you do this and the state that you publish is *not* the latest state, then
30
+ the remote node *could* punish you by taking the whole channel amount *if* they
31
+ come online before you can sweep the funds from the time locked (144 - 2000
32
+ blocks) transaction *or* they have a watch tower looking out for them.
33
+
34
+ **This should absolutely be the last resort and you have been warned!**`
35
+
22
36
type forceCloseCommand struct {
23
37
APIURL string
24
38
ChannelDB string
@@ -35,18 +49,7 @@ func newForceCloseCommand() *cobra.Command {
35
49
Use : "forceclose" ,
36
50
Short : "Force-close the last state that is in the channel.db " +
37
51
"provided" ,
38
- Long : `If you are certain that a node is offline for good (AFTER
39
- you've tried SCB!) and a channel is still open, you can use this method to
40
- force-close your latest state that you have in your channel.db.
41
-
42
- **!!! WARNING !!! DANGER !!! WARNING !!!**
43
-
44
- If you do this and the state that you publish is *not* the latest state, then
45
- the remote node *could* punish you by taking the whole channel amount *if* they
46
- come online before you can sweep the funds from the time locked (144 - 2000
47
- blocks) transaction *or* they have a watch tower looking out for them.
48
-
49
- **This should absolutely be the last resort and you have been warned!**` ,
52
+ Long : forceCloseWarning ,
50
53
Example : `chantools forceclose \
51
54
--fromsummary results/summary-xxxx-yyyy.json
52
55
--channeldb ~/.lnd/data/graph/mainnet/channel.db \
0 commit comments