Skip to content

Commit e6a9395

Browse files
committed
mod+cmd: pin lnd version in command help texts
1 parent f2ee1d3 commit e6a9395

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

cmd/chantools/deletepayments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If only the failed payments should be deleted (and not the successful ones), the
2525
2626
CAUTION: Running this command will make it impossible to use the channel DB
2727
with an older version of lnd. Downgrading is not possible and you'll need to
28-
run lnd v0.16.0-beta or later after using this command!'`,
28+
run lnd ` + lndVersion + ` or later after using this command!'`,
2929
Example: `chantools deletepayments --failedonly \
3030
--channeldb ~/.lnd/data/graph/mainnet/channel.db`,
3131
RunE: cc.Execute,

cmd/chantools/dropchannelgraph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ without removing any other data.
4646
4747
CAUTION: Running this command will make it impossible to use the channel DB
4848
with an older version of lnd. Downgrading is not possible and you'll need to
49-
run lnd v0.16.0-beta or later after using this command!'`,
49+
run lnd ` + lndVersion + ` or later after using this command!'`,
5050
Example: `chantools dropchannelgraph \
5151
--channeldb ~/.lnd/data/graph/mainnet/channel.db \
5252
--node_identity_key 03......

cmd/chantools/migratedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ needs to read the database content.
2525
2626
CAUTION: Running this command will make it impossible to use the channel DB
2727
with an older version of lnd. Downgrading is not possible and you'll need to
28-
run lnd v0.16.0-beta or later after using this command!'`,
28+
run lnd ` + lndVersion + ` or later after using this command!'`,
2929
Example: `chantools migratedb \
3030
--channeldb ~/.lnd/data/graph/mainnet/channel.db`,
3131
RunE: cc.Execute,

cmd/chantools/removechannel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ channel was never confirmed on chain!
3131
3232
CAUTION: Running this command will make it impossible to use the channel DB
3333
with an older version of lnd. Downgrading is not possible and you'll need to
34-
run lnd v0.16.0-beta or later after using this command!`,
34+
run lnd ` + lndVersion + ` or later after using this command!`,
3535
Example: `chantools removechannel \
3636
--channeldb ~/.lnd/data/graph/mainnet/channel.db \
3737
--channel 3149764effbe82718b280de425277e5e7b245a4573aa4a0203ac12cee1c37816:0`,

cmd/chantools/root.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ const (
3434
version = "0.11.3"
3535
na = "n/a"
3636

37+
// lndVersion is the current version of lnd that we support. This is
38+
// shown in some commands that affect the database and its migrations.
39+
lndVersion = "v0.16.0-beta"
40+
3741
Commit = ""
3842
)
3943

go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ require (
1919
github.com/hasura/go-graphql-client v0.9.1
2020
github.com/lightninglabs/loop v0.23.0-beta
2121
github.com/lightninglabs/pool v0.6.2-beta.0.20230329135228-c3bffb52df3a
22+
// The current version of lnd we are compatible with, mostly affects the
23+
// commands that touch the channel DB and has an impact on the DB schema.
24+
// NOTE: When updating this version, make sure to also update the string in
25+
// cmd/chantools/root.go.
2226
github.com/lightningnetwork/lnd v0.16.0-beta
2327
github.com/lightningnetwork/lnd/kvdb v1.4.1
2428
github.com/lightningnetwork/lnd/queue v1.1.0

0 commit comments

Comments
 (0)