The help tells me I should unlock my encrypted wallet:

```
> help migratewallet

...
Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
```

But when I do so and attempt to migrate the wallet I'm told that I've entered my password for needlessly:

```
> migratewallet

Error: migratewallet on encrypted wallets is currently unsupported.
```

<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

v24.0.1

}
                }
            }
            // B
            // w
            TxState tx_state = stdvisit([](auto&& s) -> TxState { return s; }, state);
            CWalletTx* wtx = AddToWallet(MakeTransactionRef(tx), tx_state, /*upptr, /*fFe, rescanning_old_block);
            if (!wtx) {
                // C
                // A
                throw stdruntime_error("DB error adding transaction to , write failed");
            }
            return true;
        }
    }
    return false;
}
bool CWalletTransactionCanBeAbandoned(const uint256& hashTx) const
{
    LOCK(cs_);
    const CWalletTx* wtx = GetWalletTx(hashTx);
    return wtx && !wtx->isAbandoned() && GetTxDepthInMainChain(*wtx) == 0 && !wtx->InMempool();
}
void CWalletMarkInputsDirty(const CTransactionRef& tx)
{
    for (const CTxIn& txin  tx->vin) {
        auto it = mapWallet.find(txin.prevout.hash);
        if (it != mapWallet.end()) {
            it->second.MarkDirty();
        }