We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1441145 commit 7e2af06Copy full SHA for 7e2af06
src/wallet/scriptpubkeyman.cpp
@@ -717,10 +717,7 @@ std::optional<MigrationData> LegacyDataSPKM::MigrateToDescriptor()
717
718
std::vector<CScript> desc_spks;
719
720
- // Make the descriptor string with private keys
721
- std::string desc_str;
722
- bool watchonly = !desc->ToPrivateString(*this, desc_str);
723
- if (watchonly && !m_storage.IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
+ if (!desc->HavePrivateKeys(*this) && !m_storage.IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
724
out.watch_descs.emplace_back(desc->ToString(), creation_time);
725
726
// Get the scriptPubKeys without writing this to the wallet
0 commit comments