Post
Topic
Board Bitcoin Technical Support
Merits 3 from 1 user
Re: Open Wallet Hangs v26.0
by
nc50lc
on 25/01/2024, 06:51:47 UTC
⭐ Merited by ABCbits (3)
What is the command line approach to opening the wallet, maybe that approach could get around the UI issue to narrow it down.
Try it in the GUI's console first:
  • Go to "Window->Console" and select "wallet: (none)" (not required)
  • Then type: loadwallet "wallet_name" true

In the command line, use bitcoin-cli with the same command as the above:
  • Use Windows Explorer and go to daemon/bin folder inside bitcoin's install directory (default: "C:\Program Files\Bitcoin\daemon")
  • Click "File->Open Windows Powershell".
  • In Poweshell, type the command: ./bitcoin-cli loadwallet  "wallet_name" true

But in order for bitcoin-cli to work with bitcoin-qt, you must use --server arg with your bitcoin-qt or server=1/ in 'bitcoin.conf' file.
In case you've set a custom data directory and not using rpc username and password, --datadir= should also be indicated for it to find the ".cookie" file in that directory.

You can change "true" to "false" if you do not want to keep the wallet loaded in the next session. (not recommended if 'prune block storage' is enabled)