@@ -267,7 +267,7 @@ func testChannelBackupRestoreBasic(ht *lntest.HarnessTest) {
267
267
// the node from seed, then manually recover
268
268
// the channel backup.
269
269
return chanRestoreViaRPC (
270
- st , password , mnemonic , multi , oldNode ,
270
+ st , password , mnemonic , multi ,
271
271
)
272
272
},
273
273
},
@@ -291,7 +291,7 @@ func testChannelBackupRestoreBasic(ht *lntest.HarnessTest) {
291
291
// create a new nodeRestorer that will restore
292
292
// using the on-disk channel.backup.
293
293
return chanRestoreViaRPC (
294
- st , password , mnemonic , multi , oldNode ,
294
+ st , password , mnemonic , multi ,
295
295
)
296
296
},
297
297
},
@@ -523,7 +523,7 @@ func runChanRestoreScenarioUnConfirmed(ht *lntest.HarnessTest, useFile bool) {
523
523
// In our nodeRestorer function, we'll restore the node from seed, then
524
524
// manually recover the channel backup.
525
525
restoredNodeFunc := chanRestoreViaRPC (
526
- ht , crs .password , crs .mnemonic , multi , dave ,
526
+ ht , crs .password , crs .mnemonic , multi ,
527
527
)
528
528
529
529
// Test the scenario.
@@ -658,7 +658,7 @@ func runChanRestoreScenarioCommitTypes(ht *lntest.HarnessTest,
658
658
// Now that we have Dave's backup file, we'll create a new nodeRestorer
659
659
// that we'll restore using the on-disk channels.backup.
660
660
restoredNodeFunc := chanRestoreViaRPC (
661
- ht , crs .password , crs .mnemonic , multi , dave ,
661
+ ht , crs .password , crs .mnemonic , multi ,
662
662
)
663
663
664
664
// Test the scenario.
@@ -687,7 +687,7 @@ func testChannelBackupRestoreLegacy(ht *lntest.HarnessTest) {
687
687
// In our nodeRestorer function, we'll restore the node from seed, then
688
688
// manually recover the channel backup.
689
689
restoredNodeFunc := chanRestoreViaRPC (
690
- ht , crs .password , crs .mnemonic , multi , dave ,
690
+ ht , crs .password , crs .mnemonic , multi ,
691
691
)
692
692
693
693
// Test the scenario.
@@ -779,7 +779,7 @@ func runChanRestoreScenarioForceClose(ht *lntest.HarnessTest, zeroConf bool) {
779
779
// Now that we have Dave's backup file, we'll create a new nodeRestorer
780
780
// that will restore using the on-disk channel.backup.
781
781
restoredNodeFunc := chanRestoreViaRPC (
782
- ht , crs .password , crs .mnemonic , multi , dave ,
782
+ ht , crs .password , crs .mnemonic , multi ,
783
783
)
784
784
785
785
// We now wait until both Dave's closing tx.
@@ -1388,8 +1388,7 @@ func createLegacyRevocationChannel(ht *lntest.HarnessTest,
1388
1388
// instance which will restore the target node from a password+seed, then
1389
1389
// trigger a SCB restore using the RPC interface.
1390
1390
func chanRestoreViaRPC (ht * lntest.HarnessTest , password []byte ,
1391
- mnemonic []string , multi []byte ,
1392
- oldNode * node.HarnessNode ) nodeRestorer {
1391
+ mnemonic []string , multi []byte ) nodeRestorer {
1393
1392
1394
1393
backup := & lnrpc.RestoreChanBackupRequest_MultiChanBackup {
1395
1394
MultiChanBackup : multi ,
0 commit comments