Closed digital-dreamer closed 10 years ago
I haven't yet tested it, but the code looks good (see my remarks). I think we can merge this after testing everything thoroughly (absolute / relative paths, backupwallet in particular).
I added a commit with the improvements. I tested both absolute/relative paths and wallet backups (from UI) and it seems to work fine, but it will be better it you check it too, in case I missed something,
All these worked fine: namecoin-qt.exe -walletpath=wallet.dat_ant_test namecoin-qt.exe -walletpath=..\namecoin\wallet.dat_ant_test namecoin-qt.exe -walletpath=%appdata%\namecoin\wallet.dat_ant_test namecoin-qt.exe -walletpath=%appdata%/namecoin\wallet.dat_ant_test
@digital-dreamer Would you like to fix it yourself or should I give it a try?
Is it OK now?
ACK
You can set walletpath=(file) in bitcoin.conf to use a custom wallet file. It doesn't have to be in the data directory, absolute and relative paths are supported too.
Implements feature request #78