Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: allow changing the default root directory #2162

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

theedtron
Copy link
Contributor

@theedtron theedtron commented Apr 9, 2024

This pull request adds a flag called global home root which adds all btcd data into one specified path. I've also added code to check for the flag and reassigns config, datadir, rpc & rpccert file paths.
It fixes issue #2106

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

@coveralls
Copy link

coveralls commented Apr 9, 2024

Pull Request Test Coverage Report for Build 8798502118

Details

  • 0 of 14 (0.0%) changed or added relevant lines in 1 file are covered.
  • 9 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.03%) to 56.861%

Changes Missing Coverage Covered Lines Changed/Added Lines %
config.go 0 14 0.0%
Files with Coverage Reduction New Missed Lines %
mempool/mempool.go 1 66.84%
txscript/taproot.go 2 95.98%
peer/peer.go 6 74.16%
Totals Coverage Status
Change from base Build 8789790194: -0.03%
Covered Lines: 29451
Relevant Lines: 51795

💛 - Coveralls

@theedtron theedtron changed the title #2106 config: allow changing the default root directory Apr 9, 2024
@theedtron theedtron marked this pull request as ready for review April 16, 2024 07:51
@theedtron theedtron marked this pull request as draft April 18, 2024 08:11
@theedtron theedtron marked this pull request as ready for review April 23, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants