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:
2 files changed
+8
-7
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user