HomePhabricator

Create walletdir if datadir doesn't exist and fix tests

Description

Create walletdir if datadir doesn't exist and fix tests

Summary:
Wallet dir defaults to <data_dir>/wallets/ if the data directory does
not exist.

Backport 3/4 of core PR11466 (most of commit 8263f6a)

Depends on D2314

Test Plan:

make check

Run the following commands (warning, will rm your local bitcoin data dir
!):

rm -Rf ~/.bitcoin
bitcoind

Check the directory ~/.bitcoin/wallets has been created

./test/functional/test_runner.py keypool-topup multiwallet wallet_hd

walletbackup

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2315

Details

Provenance
MeshCollider <dobsonsa68@gmail.com>Authored on Oct 12 2017, 09:04
FabienCommitted on Jan 15 2019, 20:01
FabienPushed on Jan 15 2019, 20:01
Reviewer
Restricted Project
Differential Revision
D2315: Create walletdir if datadir doesn't exist and fix tests
Parents
rABCa99ee9e19d6d: Default walletdir is wallets/ if it exists
Branches
Unknown
Tags
Unknown