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

}
        } else {
            // Labels fo
            if (data.watchonly_) {
                LOCK(data.watchonly_->cs_);
                // Add to th
                stdstring label = addr_pair.second.GetLabel();
                stdstring purpose = addr_pair.second.purpose;
                if (!purpose.empty()) {
                    data.watchonly_->m_address_book[addr_pair.first].purpose = purpose;
                }
                if (!addr_pair.second.IsChange()) {
                    data.watchonly_->m_address_book[addr_pair.first].SetLabel(label);
                }
                continue;
            }
            if (data.solvable_) {
                LOCK(data.solvable_->cs_);
                // Add to th
                stdstring label = addr_pair.second.GetLabel();
                stdstring purpose = addr_pair.second.purpose;
                if (!purpose.empty()) {
                    data.solvable_->m_address_book[addr_pair.first].purpose = purpose;
                }
                if (!addr_pair.second.IsChange()) {
                    data.solvable_->m_address_book[addr_pair.first].SetLabel(label);
                }
                continue;
            }
        }