Skip to content

Commit f7384a0

Browse files
authored
Merge pull request #5620 from szollo/master
docs: fix inconsistent naming of channel.backup [skip ci]
2 parents 07fa98f + 00f7534 commit f7384a0

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

cmd/lncli/commands.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ var exportChanBackupCommand = cli.Command{
24872487
of the static channel backup, a serialized version of
24882488
the backup (either Single or Multi) will be written to
24892489
the target file, this is the same format used by lnd in
2490-
its channels.backup file `,
2490+
its channel.backup file `,
24912491
},
24922492
},
24932493
Action: actionDecorator(exportChanBackup),
@@ -2616,7 +2616,7 @@ var verifyChanBackupCommand = cli.Command{
26162616
static channel backups in single blob.
26172617
26182618
* A file path which points to a packed multi-channel backup within a
2619-
file, using the same format that lnd does in its channels.backup
2619+
file, using the same format that lnd does in its channel.backup
26202620
file.
26212621
`,
26222622
Flags: []cli.Flag{
@@ -2683,7 +2683,7 @@ var restoreChanBackupCommand = cli.Command{
26832683
Description: `
26842684
Allows a user to restore a Static Channel Backup (SCB) that was
26852685
obtained either via the exportchanbackup command, or from lnd's
2686-
automatically managed channels.backup file. This command should be used
2686+
automatically managed channel.backup file. This command should be used
26872687
if a user is attempting to restore a channel due to data loss on a
26882688
running node restored with the same seed as the node that created the
26892689
channel. If successful, this command will allows the user to recover
@@ -2698,7 +2698,7 @@ var restoreChanBackupCommand = cli.Command{
26982698
static channel backups in single blob.
26992699
27002700
* A file path which points to a packed multi-channel backup within a
2701-
file, using the same format that lnd does in its channels.backup
2701+
file, using the same format that lnd does in its channel.backup
27022702
file.
27032703
`,
27042704
Flags: []cli.Flag{

docs/recovery.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ process.
242242
#### On-Disk `channel.backup`
243243

244244
There are multiple ways of obtaining SCBs from `lnd`. The most commonly used
245-
method will likely be via the `channels.backup` file that's stored on-disk
245+
method will likely be via the `channel.backup` file that's stored on-disk
246246
alongside the rest of the chain data. This is a special file that contains SCB
247247
entries for _all_ currently open channels. Each time a channel is opened or
248248
closed, this file is updated on disk in a safe manner (atomic file rename). As
@@ -273,7 +273,7 @@ Another way to obtain SCBS for all or a target channel is via the new
273273
"multi_chan_backup": "fd73e992e5133aa085c8e45548e0189c411c8cfe42e902b0ee2dec528a18fb472c3375447868ffced0d4812125e4361d667b7e6a18b2357643e09bbe7e9110c6b28d74f4f55e7c29e92419b52509e5c367cf2d977b670a2ff7560f5fe24021d246abe30542e6c6e3aa52f903453c3a2389af918249dbdb5f1199aaecf4931c0366592165b10bdd58eaf706d6df02a39d9323a0c65260ffcc84776f2705e4942d89e4dbefa11c693027002c35582d56e295dcf74d27e90873699657337696b32c05c8014911a7ec8eb03bdbe526fe658be8abdf50ab12c4fec9ddeefc489cf817721c8e541d28fbe71e32137b5ea066a9f4e19814deedeb360def90eff2965570aab5fedd0ebfcd783ce3289360953680ac084b2e988c9cbd0912da400861467d7bb5ad4b42a95c2d541653e805cbfc84da401baf096fba43300358421ae1b43fd25f3289c8c73489977592f75bc9f73781f41718a752ab325b70c8eb2011c5d979f6efc7a76e16492566e43d94dbd42698eb06ff8ad4fd3f2baabafded"
274274
}
275275

276-
⛰ lncli --network=simnet exportchanbackup --all --output_file=channels.backup
276+
⛰ lncli --network=simnet exportchanbackup --all --output_file=channel.backup
277277
```
278278

279279
As shown above, a user can either: specify a specific channel to backup, backup
@@ -293,7 +293,7 @@ schemes, compared to the file system notification based approach.
293293
If a node is being created from scratch, then it's possible to pass in an
294294
existing SCB using the `lncli create` or `lncli unlock` commands:
295295
```shell
296-
⛰ lncli create -multi_file=channels.backup
296+
⛰ lncli create -multi_file=channel.backup
297297
```
298298

299299
Alternatively, the `restorechanbackup` command can be used if `lnd` has already
@@ -313,7 +313,7 @@ DESCRIPTION:
313313

314314
Allows a user to restore a Static Channel Backup (SCB) that was
315315
obtained either via the exportchanbackup command, or from lnd's
316-
automatically managed channels.backup file. This command should be used
316+
automatically managed channel.backup file. This command should be used
317317
if a user is attempting to restore a channel due to data loss on a
318318
running node restored with the same seed as the node that created the
319319
channel. If successful, this command will allows the user to recover
@@ -328,7 +328,7 @@ DESCRIPTION:
328328
static channel backups in single blob.
329329
330330
* A file path which points to a packed multi-channel backup within a
331-
file, using the same format that lnd does in its channels.backup
331+
file, using the same format that lnd does in its channel.backup
332332
file.
333333
334334

lntest/itest/lnd_channel_backup_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ func testChannelBackupRestore(net *lntest.NetworkHarness, t *harnessTest) {
7979
mnemonic []string) (nodeRestorer, error) {
8080

8181
// Read the entire Multi backup stored within
82-
// this node's channels.backup file.
82+
// this node's channel.backup file.
8383
multi, err := ioutil.ReadFile(backupFilePath)
8484
if err != nil {
8585
return nil, err
8686
}
8787

8888
// Now that we have Dave's backup file, we'll
8989
// create a new nodeRestorer that will restore
90-
// using the on-disk channels.backup.
90+
// using the on-disk channel.backup.
9191
return chanRestoreViaRPC(
9292
net, password, mnemonic, multi, oldNode,
9393
)
@@ -190,15 +190,15 @@ func testChannelBackupRestore(net *lntest.NetworkHarness, t *harnessTest) {
190190
mnemonic []string) (nodeRestorer, error) {
191191

192192
// Read the entire Multi backup stored within
193-
// this node's channels.backup file.
193+
// this node's channel.backup file.
194194
multi, err := ioutil.ReadFile(backupFilePath)
195195
if err != nil {
196196
return nil, err
197197
}
198198

199199
// Now that we have Dave's backup file, we'll
200200
// create a new nodeRestorer that will restore
201-
// using the on-disk channels.backup.
201+
// using the on-disk channel.backup.
202202
backup := &lnrpc.RestoreChanBackupRequest_MultiChanBackup{
203203
MultiChanBackup: multi,
204204
}
@@ -258,7 +258,7 @@ func testChannelBackupRestore(net *lntest.NetworkHarness, t *harnessTest) {
258258
mnemonic []string) (nodeRestorer, error) {
259259

260260
// Read the entire Multi backup stored within
261-
// this node's channels.backup file.
261+
// this node's channel.backup file.
262262
multi, err := ioutil.ReadFile(backupFilePath)
263263
if err != nil {
264264
return nil, err
@@ -345,15 +345,15 @@ func testChannelBackupRestore(net *lntest.NetworkHarness, t *harnessTest) {
345345
mnemonic []string) (nodeRestorer, error) {
346346

347347
// Read the entire Multi backup stored within
348-
// this node's channels.backup file.
348+
// this node's channel.backup file.
349349
multi, err := ioutil.ReadFile(backupFilePath)
350350
if err != nil {
351351
return nil, err
352352
}
353353

354354
// Now that we have Dave's backup file, we'll
355355
// create a new nodeRestorer that will restore
356-
// using the on-disk channels.backup.
356+
// using the on-disk channel.backup.
357357
return chanRestoreViaRPC(
358358
net, password, mnemonic, multi, oldNode,
359359
)
@@ -405,15 +405,15 @@ func testChannelBackupRestore(net *lntest.NetworkHarness, t *harnessTest) {
405405
mnemonic []string) (nodeRestorer, error) {
406406

407407
// Read the entire Multi backup stored within
408-
// this node's channels.backup file.
408+
// this node's channel.backup file.
409409
multi, err := ioutil.ReadFile(backupFilePath)
410410
if err != nil {
411411
return nil, err
412412
}
413413

414414
// Now that we have Dave's backup file, we'll
415415
// create a new nodeRestorer that will restore
416-
// using the on-disk channels.backup.
416+
// using the on-disk channel.backup.
417417
return chanRestoreViaRPC(
418418
net, password, mnemonic, multi, oldNode,
419419
)
@@ -443,7 +443,7 @@ func testChannelBackupRestore(net *lntest.NetworkHarness, t *harnessTest) {
443443
}
444444

445445
// testChannelBackupUpdates tests that both the streaming channel update RPC,
446-
// and the on-disk channels.backup are updated each time a channel is
446+
// and the on-disk channel.backup are updated each time a channel is
447447
// opened/closed.
448448
func testChannelBackupUpdates(net *lntest.NetworkHarness, t *harnessTest) {
449449
ctxb := context.Background()

lntest/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func (hn *HarnessNode) TLSKeyStr() string {
521521
return hn.Cfg.TLSKeyPath
522522
}
523523

524-
// ChanBackupPath returns the fielpath to the on-disk channels.backup file for
524+
// ChanBackupPath returns the fielpath to the on-disk channel.backup file for
525525
// this node.
526526
func (hn *HarnessNode) ChanBackupPath() string {
527527
return hn.Cfg.ChanBackupPath()

0 commit comments

Comments
 (0)