From 072d506240f6c39387b2edd4421818cc914c0912 Mon Sep 17 00:00:00 2001 From: Ava Chow Date: Thu, 1 Feb 2024 18:00:58 -0500 Subject: [PATCH] wallet: Make sure that the descriptors flag is set for blank wallets --- src/wallet/wallet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 33b3ad6e91..1946e43eac 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4257,6 +4257,9 @@ util::Result MigrateLegacyToDescriptor(const std::string& walle success = local_wallet->IsWalletFlagSet(WALLET_FLAG_BLANK_WALLET); if (!success) { success = DoMigration(*local_wallet, context, error, res); + } else { + // Make sure that descriptors flag is actually set + local_wallet->SetWalletFlag(WALLET_FLAG_DESCRIPTORS); } }