Minimal rebrand (see compliant-rebrand branch for full rebrand): - Rename binaries: hushd/hush-cli/hush-tx → dragonxd/dragonx-cli/dragonx-tx - Default to DRAGONX chain params without -ac_* flags (randomx, blocktime=36, private=1) - Update configure.ac: AC_INIT([DragonX],[1.0.0]) - Update client version string and user-agent to /DragonX:1.0.0/ - Add chainparams.cpp with DRAGONX network parameters - Update build.sh, miner.cpp, pow.cpp for DragonX - Add bootstrap-dragonx.sh utility script - Update .gitignore for release directory Share single RandomX dataset across all mining threads: - Add RandomXDatasetManager with readers-writer lock, reducing RAM from ~2GB per thread to ~2GB total plus ~2MB per thread for the VM scratchpad - Add LogProcessMemory() diagnostic helper for Linux and Windows
44 lines
1.1 KiB
Bash
Executable File
44 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2016-2024 The Hush developers
|
|
# Distributed under the GPLv3 software license, see the accompanying
|
|
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
export HOST=x86_64-w64-mingw32
|
|
CXX=x86_64-w64-mingw32-g++-posix
|
|
CC=x86_64-w64-mingw32-gcc-posix
|
|
PREFIX="$(pwd)/depends/$HOST"
|
|
|
|
set -eu -o pipefail
|
|
set -x
|
|
|
|
cd "$(dirname "$(readlink -f "$0")")/.."
|
|
cd depends/ && make HOST=$HOST V=1 NO_QT=1
|
|
cd ..
|
|
|
|
./autogen.sh
|
|
|
|
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site CXXFLAGS="-DPTW32_STATIC_LIB -DCURL_STATICLIB -fopenmp -pthread" ./configure --prefix="${PREFIX}" --host=x86_64-w64-mingw32 --enable-static --disable-shared
|
|
|
|
# Build CryptoConditions stuff
|
|
WD=$PWD
|
|
cd src/cc
|
|
echo $PWD
|
|
./makecustom
|
|
cd $WD
|
|
|
|
# Build RandomX
|
|
cd src/RandomX
|
|
if [ -d "build" ]
|
|
then
|
|
ls -la build/librandomx*
|
|
else
|
|
mkdir build && cd build
|
|
CC="${CC} -g " CXX="${CXX} -g " cmake -DARCH=native ..
|
|
make
|
|
fi
|
|
|
|
cd $WD
|
|
|
|
sed -i 's/-lboost_system-mt /-lboost_system-mt-s /' configure
|
|
cd src/
|
|
CC="${CC} -g " CXX="${CXX} -g " make V=1 dragonxd.exe dragonx-cli.exe dragonx-tx.exe
|