10906597d44bddfb051cacec81ce3cef260cb979
- chainparams.cpp: Correct P2P port from 18030 to 21768 - hush_utils.h: Use CRC-based network magic instead of HUSH_MAGIC shortcut so new standalone binary matches existing network nodes - hush_utils.h: Remove DragonX-specific hush_block_subsidy() call, use generic ASSETCHAINS_HALVING logic consistent with mainnet - hush_utils.h: Fix P2P port override so -port flag works correctly - main.cpp: Remove blocktime halving code (150s→75s at z2zheight) that does not apply to DragonX's fixed 36s blocktime - pow.cpp: Use params.AveragingWindowTimespan() (17*36=612) instead of standalone AveragingWindowTimespan() which returns HUSH3's 17*75=1275
DragonX
DragonX is a privacy-focused cryptocurrency full node using RandomX proof-of-work. All transactions are shielded (z-to-z) by default, providing strong on-chain privacy.
| Algorithm | RandomX (CPU-mineable) |
| Block time | 36 seconds |
| Block reward | 3 DRAGONX |
| Halving | Every 3,500,000 blocks |
| Privacy | All transactions shielded (-ac_private=1) |
| P2P port | 21768 |
| RPC port | 21769 |
Build on Debian or Ubuntu
# Install build dependencies
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git zlib1g-dev wget \
bsdmainutils automake curl unzip libsodium-dev cmake
# Clone the repo
git clone https://git.dragonx.is/DragonX/dragonx
cd dragonx
# Build (uses ~2GB RAM per -j thread)
./build.sh -j3
Build on Arch
sudo pacman -S gcc libsodium lib32-zlib unzip wget git python rust curl autoconf cmake
git clone https://git.dragonx.is/DragonX/dragonx
cd dragonx
./build.sh -j3
Build on Fedora
sudo dnf install make automake gcc gcc-c++ kernel-devel cmake libtool ncurses-devel patch -y
git clone https://git.dragonx.is/DragonX/dragonx
cd dragonx
./build.sh -j3
Build on macOS
sudo port update && sudo port upgrade outdated
sudo port install qt5
git clone https://git.dragonx.is/DragonX/dragonx
cd dragonx
./build.sh -j3
Cross-compile for Windows (on Linux)
sudo apt-get install \
build-essential pkg-config libc6-dev m4 g++-multilib libdb++-dev \
autoconf libtool ncurses-dev unzip git zip \
zlib1g-dev wget bsdmainutils automake mingw-w64 cmake libsodium-dev
git clone https://git.dragonx.is/DragonX/dragonx
cd dragonx
./util/build-win.sh -j$(nproc)
Running
# Start the daemon
./src/dragonxd
# In another terminal, interact via CLI
./src/dragonx-cli getinfo
./src/dragonx-cli z_getnewaddress
Data directory: ~/.hush/DRAGONX/
Config file: ~/.hush/DRAGONX/DRAGONX.conf
Mining
DragonX uses the RandomX algorithm and is CPU-mineable. Point any RandomX-compatible miner (e.g. XMRig) at a DragonX stratum pool, or solo-mine with:
./src/dragonxd -gen -genproclimit=$(nproc) -mineraddress=<your_zaddr>
Attribution
DragonX is a fork of the Hush Full Node. Based on code from Zcash, Komodo, and Bitcoin Core. Licensed under GPLv3 — see COPYING and LICENSE.
License
For license information see the file COPYING.
Description
Languages
C++
48%
Shell
28.2%
C
15.8%
Python
4.6%
M4
1%
Other
2.3%