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

}
    NotifyStatusChanged(this);
    return true;
}
DBErrors CWalletReorderTransactions()
{
    LOCK(cs_);
    WalletBatch batch(GetDatabase());
    // O
    // P
    // F
    typedef stdmultimap<int64_t, CWalletTx*> TxItems;
    TxItems txByTime;
    for (auto& entry  mapWallet)
    {
        CWalletTx* wtx = &entry.second;
        txByTime.insert(stdmake_pair(wtx->nTimeReceived, wtx));
    }
    nOrderPosNext = 0;
    stdvector<int64_t> nOrderPosOffsets;
    for (TxItemsiterator it = txByTime.begin(); it != txByTime.end(); ++it)
    {
        CWalletTx *const pwtx = (*it).second;
        int64_t& nOrderPos = pwtx->nOrderPos;
        if (nOrderPos == -1)
        {
            nOrderPos = nOrderPosNext++;
            nOrderPosOffsets.push_back(nOrderPos);
            if (!batch.WriteTx(*pwtx))
                return DBErrorsLOAD_FAIL;