mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-21 04:09:09 +02:00
Merge #11466: Specify custom wallet directory with -walletdir param
c1e5d40Make debugging test crash easier (MeshCollider)8263f6aCreate walletdir if datadir doesn't exist and fix tests (MeshCollider)9587a9cDefault walletdir is wallets/ if it exists (MeshCollider)d987889Add release notes for -walletdir and wallets/ dir (MeshCollider)80c5cbcAdd test for -walletdir (MeshCollider)0530ba0Add -walletdir parameter to specify custom wallet dir (MeshCollider) Pull request description: Closes #11348 Adds a `-walletdir` parameter which specifies a directory to use for wallets, allowing them to be stored separately from the 'main' data directory. Creates a new `wallets/` directory in datadir if this is the first time running, and defaults to using it if it exists. Includes tests and release notes. Things which might need to be considered more: - there is no 'lock' on the wallets directory, which might be needed? - because this uses a new wallets/ directory by default, downgrading to an earlier version won't see the wallets in that directory (not a big deal though, users can just copy them up to the main dir) - jnewbery suggested putting each wallet in its own directory, which is a good idea, but out of scope for this PR IMO. EDIT: this is being done in https://github.com/bitcoin/bitcoin/pull/11687 - doc/files.md needs updating (will do soon) I also considered including a cleanup by removing caching of data directory paths and instead just initialise them once on startup (c.f. #3073), but decided it wasn't super relevant here will just complicate review. Tree-SHA512: c8ac04bfe9a810c32055f2c8b8fa0d535e56125ceb8d96f12447dd3538bf3e5ee992b60b1cd2173bf5f3fa023a9feab12c9963593bf27ed419df929bb413398d
This commit is contained in:
@@ -20,7 +20,7 @@ How to Upgrade
|
||||
==============
|
||||
|
||||
If you are running an older version, shut it down. Wait until it has completely
|
||||
shut down (which might take a few minutes for older versions), then run the
|
||||
shut down (which might take a few minutes for older versions), then run the
|
||||
installer (on Windows) or just copy over `/Applications/Bitcoin-Qt` (on Mac)
|
||||
or `bitcoind`/`bitcoin-qt` (on Linux).
|
||||
|
||||
@@ -62,6 +62,20 @@ Due to a backward-incompatible change in the wallet database, wallets created
|
||||
with version 0.16.0 will be rejected by previous versions. Also, version 0.16.0
|
||||
will only create hierarchical deterministic (HD) wallets.
|
||||
|
||||
Custom wallet directories
|
||||
---------------------
|
||||
The ability to specify a directory other than the default data directory in which to store
|
||||
wallets has been added. An existing directory can be specified using the `-walletdir=<dir>`
|
||||
argument. Wallets loaded via `-wallet` arguments must be in this wallet directory. Care should be taken
|
||||
when choosing a wallet directory location, as if it becomes unavailable during operation,
|
||||
funds may be lost.
|
||||
|
||||
Default wallet directory change
|
||||
--------------------------
|
||||
On new installations (if the data directory doesn't exist), wallets will now be stored in a
|
||||
new `wallets/` subdirectory inside the data directory. If this `wallets/` subdirectory
|
||||
doesn't exist (i.e. on existing nodes), the current datadir root is used instead, as it was.
|
||||
|
||||
Low-level RPC changes
|
||||
----------------------
|
||||
- The deprecated RPC `getinfo` was removed. It is recommended that the more specific RPCs are used:
|
||||
|
||||
Reference in New Issue
Block a user