lbrycrd/test/functional/test_framework
Wladimir J. van der Laan d080a7d503
Merge #11466: Specify custom wallet directory with -walletdir param
c1e5d40 Make debugging test crash easier (MeshCollider)
8263f6a Create walletdir if datadir doesn't exist and fix tests (MeshCollider)
9587a9c Default walletdir is wallets/ if it exists (MeshCollider)
d987889 Add release notes for -walletdir and wallets/ dir (MeshCollider)
80c5cbc Add test for -walletdir (MeshCollider)
0530ba0 Add -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
2017-11-18 14:41:15 +01:00
..
__init__.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
address.py Use BIP173 addresses in segwit.py test 2017-09-28 17:29:01 -07:00
authproxy.py [tests] Don't subclass from object for Python 3 2017-10-16 21:46:23 -04:00
bignum.py Remove unused variables and/or function calls 2017-08-28 15:18:14 +02:00
blockstore.py Have SegWit active by default 2017-11-06 19:29:20 -08:00
blocktools.py Tests: Refactor to create witness script creation function 2017-04-20 11:28:45 -07:00
comptool.py qa: Remove unused NodeConn members 2017-11-13 17:43:39 -05:00
coverage.py [tests] Don't subclass from object for Python 3 2017-10-16 21:46:23 -04:00
key.py [tests] Don't subclass from object for Python 3 2017-10-16 21:46:23 -04:00
messages.py [tests] Move test_framework Bitcoin primitives into separate module 2017-11-10 11:56:45 -05:00
mininode.py Merge #11648: [tests] Add messages.py 2017-11-17 13:16:40 +01:00
netutil.py Remove unused variables and/or function calls 2017-08-28 15:18:14 +02:00
script.py [tests] Don't subclass from object for Python 3 2017-10-16 21:46:23 -04:00
segwit_addr.py Use BIP173 addresses in segwit.py test 2017-09-28 17:29:01 -07:00
siphash.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
socks5.py [tests] Don't subclass from object for Python 3 2017-10-16 21:46:23 -04:00
test_framework.py Create walletdir if datadir doesn't exist and fix tests 2017-11-18 00:50:59 +13:00
test_node.py Merge #11677: qa: Remove unused NodeConn members 2017-11-14 17:44:09 -05:00
util.py scripted-diff: rename assert_raises_jsonrpc to assert_raises_rpc error 2017-10-05 09:57:19 -04:00