From 6cce052bf71498f03bfc0db8a97dfb4ea5a72bf5 Mon Sep 17 00:00:00 2001 From: kaykurokawa Date: Mon, 28 May 2018 11:43:28 -0700 Subject: [PATCH] add a data directory section to README, fix util.cpp comment to list the proper lbrycrd default data directories --- README.md | 20 ++++++++++++++++++++ src/util.cpp | 6 +++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 64d31aafe..0d5d57f73 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,26 @@ Run `./lbrycrd-cli getinfo` to check for some basic informations about your LBRY Run `./lbrycrd-cli help` to get a list of all commands that you can run. To get help on specific commands run `./lbrycrd-cli [command_name] help` +### Data directory + +Lbrycrdd will use the below default data directories + +Windows < Vista: C:\Documents and Settings\Username\Application Data\lbrycrd +Windows >= Vista: C:\Users\Username\AppData\Roaming\lbrycrd +Mac: ~/Library/Application Support/lbrycrd +Unix: ~/.lbrycrd + +The data directory contains various things such as your default wallet (wallet.dat), debug logs (debug.log), and blockchain data. You can optionally +create a configuration file lbrycrd.conf in the default data directory which will be used by default when running lbrycrdd. +For a list of configuration parameters run `./lbrycrdd --help`. Below is a sample lbrycrd.conf to enable JSON RPC server on lbrycrdd. + +```rpcuser=lbry +rpcpassword=xyz123456790 +daemon=1 +server=1 +txindex=1 +``` + ## Running from Source Run `./reproducible_build.sh -c -t`. This will build the binaries and put them into the `./src` directory. diff --git a/src/util.cpp b/src/util.cpp index ba4fab1d0..5cc274934 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -455,9 +455,9 @@ void PrintExceptionContinue(const std::exception* pex, const char* pszThread) boost::filesystem::path GetDefaultDataDir() { namespace fs = boost::filesystem; - // Windows < Vista: C:\Documents and Settings\Username\Application Data\Bitcoin - // Windows >= Vista: C:\Users\Username\AppData\Roaming\Bitcoin - // Mac: ~/Library/Application Support/Bitcoin + // Windows < Vista: C:\Documents and Settings\Username\Application Data\lbrycrd + // Windows >= Vista: C:\Users\Username\AppData\Roaming\lbrycrd + // Mac: ~/Library/Application Support/lbrycrd // Unix: ~/.lbrycrd #ifdef WIN32 // Windows