mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
change default datadir to DashCore(Win,Mac)/.dashcore(Linux) as discussed in #898
This commit is contained in:
parent
9cb4dfca79
commit
dd5bd97561
@ -8,7 +8,7 @@ The configuration file is a list of 'setting=value' pairs, one per line, with op
|
|||||||
.TP
|
.TP
|
||||||
The configuration file is not automatically created; you can create it using your favorite plain-text editor. By default, dashd(1) will look for a file named dash.conf(5) in the dash data directory, but both the data directory and the configuration file path may be changed using the '\-datadir' and '\-conf' command-line arguments.
|
The configuration file is not automatically created; you can create it using your favorite plain-text editor. By default, dashd(1) will look for a file named dash.conf(5) in the dash data directory, but both the data directory and the configuration file path may be changed using the '\-datadir' and '\-conf' command-line arguments.
|
||||||
.SH LOCATION
|
.SH LOCATION
|
||||||
dash.conf should be located in $HOME/.dash
|
dash.conf should be located in $HOME/.dashcore
|
||||||
|
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
dashd(1)
|
dashd(1)
|
||||||
|
@ -10,7 +10,7 @@ max_height=3130000
|
|||||||
|
|
||||||
# bootstrap.dat input/output settings (linearize-data)
|
# bootstrap.dat input/output settings (linearize-data)
|
||||||
netmagic=cee2caff
|
netmagic=cee2caff
|
||||||
input=/home/example/.dash/testnet3/blocks
|
input=/home/example/.dashcore/testnet3/blocks
|
||||||
output_file=/home/example/Downloads/bootstrap.dat
|
output_file=/home/example/Downloads/bootstrap.dat
|
||||||
hashlist=hashlist.txt
|
hashlist=hashlist.txt
|
||||||
split_year=1
|
split_year=1
|
||||||
|
@ -10,7 +10,7 @@ max_height=3130000
|
|||||||
|
|
||||||
# bootstrap.dat input/output settings (linearize-data)
|
# bootstrap.dat input/output settings (linearize-data)
|
||||||
netmagic=bf0c6bbd
|
netmagic=bf0c6bbd
|
||||||
input=/home/example/.dash/blocks
|
input=/home/example/.dashcore/blocks
|
||||||
output_file=/home/example/Downloads/bootstrap.dat
|
output_file=/home/example/Downloads/bootstrap.dat
|
||||||
hashlist=hashlist.txt
|
hashlist=hashlist.txt
|
||||||
split_year=1
|
split_year=1
|
||||||
|
@ -7,7 +7,7 @@ address (or addresses).
|
|||||||
Depends on [jsonrpc](http://json-rpc.org/).
|
Depends on [jsonrpc](http://json-rpc.org/).
|
||||||
|
|
||||||
spendfrom.py --from=FROMADDRESS1[,FROMADDRESS2] --to=TOADDRESS --amount=amount \
|
spendfrom.py --from=FROMADDRESS1[,FROMADDRESS2] --to=TOADDRESS --amount=amount \
|
||||||
--fee=fee --datadir=/path/to/.dash --testnet --dry_run
|
--fee=fee --datadir=/path/to/.dashcore --testnet --dry_run
|
||||||
|
|
||||||
With no arguments, outputs a list of amounts associated with addresses.
|
With no arguments, outputs a list of amounts associated with addresses.
|
||||||
|
|
||||||
|
@ -35,10 +35,10 @@ def check_json_precision():
|
|||||||
def determine_db_dir():
|
def determine_db_dir():
|
||||||
"""Return the default location of the dash data directory"""
|
"""Return the default location of the dash data directory"""
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
return os.path.expanduser("~/Library/Application Support/Dash/")
|
return os.path.expanduser("~/Library/Application Support/DashCore/")
|
||||||
elif platform.system() == "Windows":
|
elif platform.system() == "Windows":
|
||||||
return os.path.join(os.environ['APPDATA'], "Dash")
|
return os.path.join(os.environ['APPDATA'], "DashCore")
|
||||||
return os.path.expanduser("~/.dash")
|
return os.path.expanduser("~/.dashcore")
|
||||||
|
|
||||||
def read_bitcoin_config(dbdir):
|
def read_bitcoin_config(dbdir):
|
||||||
"""Read the dash.conf file from dbdir, returns dictionary of settings"""
|
"""Read the dash.conf file from dbdir, returns dictionary of settings"""
|
||||||
|
@ -102,14 +102,14 @@ directory. We have to first create the RPC configuration file, though.
|
|||||||
Run `./dashd` to get the filename where it should be put, or just try these
|
Run `./dashd` to get the filename where it should be put, or just try these
|
||||||
commands:
|
commands:
|
||||||
|
|
||||||
echo -e "rpcuser=dashrpc\nrpcpassword=$(xxd -l 16 -p /dev/urandom)" > "/Users/${USER}/Library/Application Support/Dash/dash.conf"
|
echo -e "rpcuser=dashrpc\nrpcpassword=$(xxd -l 16 -p /dev/urandom)" > "/Users/${USER}/Library/Application Support/DashCore/dash.conf"
|
||||||
chmod 600 "/Users/${USER}/Library/Application Support/Dash/dash.conf"
|
chmod 600 "/Users/${USER}/Library/Application Support/DashCore/dash.conf"
|
||||||
|
|
||||||
The next time you run it, it will start downloading the blockchain, but it won't
|
The next time you run it, it will start downloading the blockchain, but it won't
|
||||||
output anything while it's doing this. This process may take several hours;
|
output anything while it's doing this. This process may take several hours;
|
||||||
you can monitor its process by looking at the debug.log file, like this:
|
you can monitor its process by looking at the debug.log file, like this:
|
||||||
|
|
||||||
tail -f $HOME/Library/Application\ Support/Dash/debug.log
|
tail -f $HOME/Library/Application\ Support/DashCore/debug.log
|
||||||
|
|
||||||
Other commands:
|
Other commands:
|
||||||
-------
|
-------
|
||||||
|
@ -120,7 +120,7 @@ If you generated a new masternode private key, you will need to update the remot
|
|||||||
|
|
||||||
Shut down the daemon and then edit the file.
|
Shut down the daemon and then edit the file.
|
||||||
|
|
||||||
```nano .dash/dash.conf```
|
```nano .dashcore/dash.conf```
|
||||||
|
|
||||||
### Edit the masternodeprivkey
|
### Edit the masternodeprivkey
|
||||||
If you generated a new masternode private key, you will need to update the `masternodeprivkey` value in your remote `dash.conf` file.
|
If you generated a new masternode private key, you will need to update the `masternodeprivkey` value in your remote `dash.conf` file.
|
||||||
|
@ -68,9 +68,9 @@ can then be controlled by group membership.
|
|||||||
3b) Mac OS X
|
3b) Mac OS X
|
||||||
|
|
||||||
Binary: `/usr/local/bin/dashd`
|
Binary: `/usr/local/bin/dashd`
|
||||||
Configuration file: `~/Library/Application Support/Dash/dash.conf`
|
Configuration file: `~/Library/Application Support/DashCore/dash.conf`
|
||||||
Data directory: `~/Library/Application Support/Dash`
|
Data directory: `~/Library/Application Support/DashCore`
|
||||||
Lock file: `~/Library/Application Support/Dash/.lock`
|
Lock file: `~/Library/Application Support/DashCore/.lock`
|
||||||
|
|
||||||
4. Installing Service Configuration
|
4. Installing Service Configuration
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
@ -2,9 +2,9 @@ Multi masternode config
|
|||||||
=======================
|
=======================
|
||||||
|
|
||||||
The multi masternode config allows to control multiple masternodes from a single wallet. The wallet needs to have a valid collaral output of 1000 coins for each masternode. To use this, place a file named `masternode.conf` in the data directory of your install:
|
The multi masternode config allows to control multiple masternodes from a single wallet. The wallet needs to have a valid collaral output of 1000 coins for each masternode. To use this, place a file named `masternode.conf` in the data directory of your install:
|
||||||
* Windows: %APPDATA%\Dash\
|
* Windows: %APPDATA%\DashCore\
|
||||||
* Mac OS: ~/Library/Application Support/Dash/
|
* Mac OS: ~/Library/Application Support/DashCore/
|
||||||
* Unix/Linux: ~/.dash/
|
* Unix/Linux: ~/.dashcore/
|
||||||
|
|
||||||
`masternode.conf` format is a space seperated text file. Each line consisting of an alias, IP address followed by port, masternode private key, collateral output transaction id and collateral output index.
|
`masternode.conf` format is a space seperated text file. Each line consisting of an alias, IP address followed by port, masternode private key, collateral output transaction id and collateral output index.
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
#
|
#
|
||||||
DATADIR="@abs_top_builddir@/.dash"
|
DATADIR="@abs_top_builddir@/.dashcore"
|
||||||
rm -rf "$DATADIR"
|
rm -rf "$DATADIR"
|
||||||
mkdir -p "$DATADIR"/regtest
|
mkdir -p "$DATADIR"/regtest
|
||||||
touch "$DATADIR/regtest/debug.log"
|
touch "$DATADIR/regtest/debug.log"
|
||||||
|
@ -50,9 +50,9 @@ Var StartMenuGroup
|
|||||||
# Installer attributes
|
# Installer attributes
|
||||||
OutFile @abs_top_srcdir@/dash-${VERSION}-win@WINDOWS_BITS@-setup.exe
|
OutFile @abs_top_srcdir@/dash-${VERSION}-win@WINDOWS_BITS@-setup.exe
|
||||||
!if "@WINDOWS_BITS@" == "64"
|
!if "@WINDOWS_BITS@" == "64"
|
||||||
InstallDir $PROGRAMFILES64\Dash
|
InstallDir $PROGRAMFILES64\DashCore
|
||||||
!else
|
!else
|
||||||
InstallDir $PROGRAMFILES\Dash
|
InstallDir $PROGRAMFILES\DashCore
|
||||||
!endif
|
!endif
|
||||||
CRCCheck on
|
CRCCheck on
|
||||||
XPStyle on
|
XPStyle on
|
||||||
|
14
src/util.cpp
14
src/util.cpp
@ -528,13 +528,13 @@ void PrintExceptionContinue(const std::exception* pex, const char* pszThread)
|
|||||||
boost::filesystem::path GetDefaultDataDir()
|
boost::filesystem::path GetDefaultDataDir()
|
||||||
{
|
{
|
||||||
namespace fs = boost::filesystem;
|
namespace fs = boost::filesystem;
|
||||||
// Windows < Vista: C:\Documents and Settings\Username\Application Data\Dash
|
// Windows < Vista: C:\Documents and Settings\Username\Application Data\DashCore
|
||||||
// Windows >= Vista: C:\Users\Username\AppData\Roaming\Dash
|
// Windows >= Vista: C:\Users\Username\AppData\Roaming\DashCore
|
||||||
// Mac: ~/Library/Application Support/Dash
|
// Mac: ~/Library/Application Support/DashCore
|
||||||
// Unix: ~/.dash
|
// Unix: ~/.dashcore
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
// Windows
|
// Windows
|
||||||
return GetSpecialFolderPath(CSIDL_APPDATA) / "Dash";
|
return GetSpecialFolderPath(CSIDL_APPDATA) / "DashCore";
|
||||||
#else
|
#else
|
||||||
fs::path pathRet;
|
fs::path pathRet;
|
||||||
char* pszHome = getenv("HOME");
|
char* pszHome = getenv("HOME");
|
||||||
@ -546,10 +546,10 @@ boost::filesystem::path GetDefaultDataDir()
|
|||||||
// Mac
|
// Mac
|
||||||
pathRet /= "Library/Application Support";
|
pathRet /= "Library/Application Support";
|
||||||
TryCreateDirectory(pathRet);
|
TryCreateDirectory(pathRet);
|
||||||
return pathRet / "Dash";
|
return pathRet / "DashCore";
|
||||||
#else
|
#else
|
||||||
// Unix
|
// Unix
|
||||||
return pathRet / ".dash";
|
return pathRet / ".dashcore";
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user