wallet: List sqlite wallets with empty string name

Although it is not explicitly possible to create a default wallet with
descriptors, it is possible to migrate a default wallet and have it end
up being a default wallet with descriptors. These wallets should be
listed by ListDatabases so that it appears in wallet directory listings
to avoid user confusion.
This commit is contained in:
Ava Chow
2024-06-10 17:23:55 -04:00
parent 3ddbdd1815
commit 6b2dcba076
2 changed files with 3 additions and 2 deletions

View File

@@ -539,6 +539,7 @@ class WalletMigrationTest(BitcoinTestFramework):
assert_equal(info["format"], "sqlite")
walletdir_list = wallet.listwalletdir()
assert {"name": info["walletname"]} in walletdir_list["wallets"]
# Check backup existence and its non-empty wallet filename
backup_filename = f"default_wallet_{curr_time}.legacy.bak"