aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorAva Chow <github@achow101.com>2024-02-01 18:00:58 -0500
committerAva Chow <github@achow101.com>2024-02-01 18:00:58 -0500
commit072d506240f6c39387b2edd4421818cc914c0912 (patch)
tree2e2b92d0816cdf28368f6ca002a1c9c968c1d8ff /src/wallet/wallet.cpp
parent5b8c5970bdfc817cac9b59f699925c4426c59b61 (diff)
downloadbitcoin-072d506240f6c39387b2edd4421818cc914c0912.tar.xz
wallet: Make sure that the descriptors flag is set for blank wallets
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 3 insertions, 0 deletions
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<MigrationResult> 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);
}
}