Why this change?
#30269 describes a need for documentation improvement with the loadwallet
RPC. Namely, some users have found the usage description confusing when it comes to loading wallets that are not in the normal case of being in the default wallet directory.
The default wallet directory, depending on the machine OS, has the base directory defined here: https://github.com/bitcoin/bitcoin/blob/9c5cdf07f30f816cd134e2cd2dca9c27ef7067a5/src/common/args.cpp#L699 which is then appended with /wallets
. So for example, for MacOS, it would be ~/Library/Application Support/Bitcoin/wallets
.
The changes implemented
- Change the help text to indicate that the filename (or directory) passed in to
loadwallet
is relative to the base wallet directory - Adds additional examples to the help page showing how to fetch a wallet within a subdirectory of the base data directory for wallets, or from an absolute path