btcsuite / btcwallet

A secure bitcoin wallet daemon written in Go (golang)
ISC License
1.15k stars 590 forks source link

add globalhome root flag to set home root directory #927

Open theedtron opened 7 months ago

theedtron commented 7 months ago

This pull request adds a flag called global home root which adds all btcwallet data into one specified path. I've also added code to check for the flag and reassigns config, datadir, rpc & rpccert file paths. Ideally when using the flag globalhomeroot you have the ability to keep all your data in btcwallet, btcd and btcctl in one folder.

Expected outcome btcwallet --globalhomeroot=/User/Specified/Path This flag will create a Btcwallet folder in the user specified path and use the path as the default for all data and configs

Fixes issue https://github.com/btcsuite/btcwallet/issues/926