Hi, I'm trying to work with multiple wallets with Bitcoin Core on regtest, for learning purposes.
I created 3 wallets like
bitcoin-cli -regtest createwallet "wallet1"
bitcoin-cli -regtest createwallet "wallet2"
bitcoin-cli -regtest createwallet "wallet3"
Now I want to unload/load wallets, but
bitcoin-cli -regtest loadwallet "wallet1"
gives me an error message:
error code: -4
error message:
Wallet file verification failed: Error loading wallet wallet1. Duplicate -wallet filename specified.
Depending on the path I give for "wallet1" I get various different errors, but nothing loads the wallet.
I understand that I can specify the wallet via the
option. But for what purpose are the loadwallet/unloadwallet commands? How are they meant to be used?
Thanks.