diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 7d2e9eec766..373daed0916 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3901,6 +3901,10 @@ util::Result CWallet::ApplyMigrationData(WalletBatch& local_wallet_batch, return util::Error{_("Error: Unable to read wallet's best block locator record")}; } + // Update m_txos to match the descriptors remaining in this wallet + m_txos.clear(); + RefreshAllTXOs(); + // Check if the transactions in the wallet are still ours. Either they belong here, or they belong in the watchonly wallet. // We need to go through these in the tx insertion order so that lookups to spends works. std::vector txids_to_delete;