> Minor follow-up of [[https://github.com/bitcoin/bitcoin/pull/19250 | core#19250]]. The global HasWallets() is used only once and at the call site there's already a way to know if any wallet is loaded.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19261 | core#19261]]
Depends on D9456