rpcserver: don't skip pending channels in backup subscription

The synchronous call to get all channel backups also include
channels that are pending at the moment of the call. A previous
commit added pending channels to the file based backup as well. So
this is the last backup method that needs to be adjusted to also
contain unconfirmed channels.
This commit is contained in:
Oliver Gugger committed 2020-03-04 10:58:49 +01:00
1 parent 8a2c02f8ea
commit 4e0c276154
2 files changed
+8 -7

No files matched your search

+3 -3
View File
@@ -13675,9 +13675,9 @@ func testChannelBackupUpdates(net *lntest.NetworkHarness, t *harnessTest) {
}
}
// As these two channels were just open, we should've got two
// notifications for channel backups.
assertBackupNtfns(2)
// As these two channels were just opened, we should've got two times
// the pending and open notifications for channel backups.
assertBackupNtfns(2 * 2)
// The on disk file should also exactly match the latest backup that we
// have.