Commit Graph
374 Commits
Author SHA1 Message Date
DanSandClaude Opus 4.8 817c6b2d0e hygiene: Phase 5 — correct stale comments + name safe magic numbers
Fifth phase of the code-hygiene remediation, done per-file (18 files) via an
18-agent Workflow with strict guardrails. No consensus or security VALUES
changed (verified: pow/hush_utils/hush_bitcoind/net.h/crypter/stratum have
zero non-comment numeric changes); built clean, self-mined, verifychain=true.

Totals: 57 stale comments corrected, 46 user-facing branding fixes, 6
behavior-preserving named constants, 4 stratum warnings, 77 items deliberately
left (consensus/security values, copyright headers).

- Stale comments -> DragonX: corrected HUSH3/HUSH/Komodo/Equihash/Arrakis
  leftovers that misdescribed the active chain (pow AWT/lwma notes, txdb
  "Equihash solution" -> RandomX, wallet CLTV/overwinter/Sapling@1 notes,
  util datadir provenance, crypter's stale mapSproutSpendingKeys invariant).
  Replaced unprofessional/editorializing comments (profane TODOs, "developers
  are elite") with neutral technical notes, preserving the real design info.
- User-facing branding: dumpwallet header "created by Hush" -> "DragonX";
  RPC help text hushd/hush-cli/hushprivkey/hushaddress/Agama -> dragonx*;
  rebranded provably-dead "HUSH3" symbol-fallback literals to DRAGONX.
- Named constants (same values, non-consensus/non-security): addrman
  peer-selection factors (kChanceFactorGrowth/kChanceScale/deprioritize),
  sietch MIN_ZOUTS, an init notarization-DB cache size.
- Left the security macros (ECC/TFM_TIMING_RESISTANT=420, comment-clarified
  only), the consensus subsidy/commission literals + 128/129 TRANSITION
  (comment only), and copyright headers untouched.
- Added a prominent WARNING that the stratum server is Equihash-era and NOT
  updated for DragonX's RandomX PoW (flagged, not rewritten).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-27 15:19:22 -05:00
DanS 85c8d7f7dd Rebrand hush3 to DragonX and share RandomX dataset across mining threads
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
2026-03-04 18:42:42 -06:00
Duke f5934c6573 Fix SoftSetArg to also set value in mapMultiArgs
Without this fix, setting -bind=x on the CLI is different from
SoftSetArg("-bind", "x") in C++, which previously only set
the value in mapArgs
2025-03-07 09:04:35 -05:00
onryo 58b65f9670 Update copyrights 2024-02-27 23:59:59 +01:00
Duke e033a2e6eb Update copyrights to 2023 2023-02-09 18:06:03 -05:00
zanzibar 512da314a5 BIP155 (addrv2)
Tor v3 + i2p
2023-01-06 15:23:22 +00:00
fekt 66411537dd Mac fix for HSCs 2022-10-28 19:03:44 -04:00
fekt e313676562 Mac build fixes 2022-10-27 16:49:02 -04:00
jahway603 e8e0cb93b9 fixed manpage copyright spacing issue 2022-09-29 00:34:41 -04:00
Jonathan "Duke" Leto 5d2307a709 Update copyrights to 2022 2022-09-19 15:45:30 -07:00
Duke Leto a70897966a Only print out randomx debug stuff when -debug=randomx 2022-07-11 18:33:10 -04:00
Duke Leto 804a4abbe7 Log correct debug.log filename to stdout 2022-01-13 20:38:50 -05:00
Duke Leto c29e741109 Show the actual correct config file name that cannot be found 2021-08-09 17:40:35 -04:00
Duke Leto 1ccf408515 Prefer Hush/HUSH3 to Komodo/HUSH3 if both exist, mac edition 2021-08-05 12:04:53 -04:00
Duke Leto 29cc0e0fdb New directory structure for windoze 2021-07-21 00:51:56 -04:00
Duke Leto 5fb4eafd1a Prefer ~/.hush/HUSH3 to ~/.komodo/HUSH3 if both exist, unix edition 2021-07-19 22:02:44 -04:00
Duke Leto bddd4c5cd3 Migrate to ~/.hush/HUSH3 for new installs, fallback to ~/.komodo/HUSH3 if that exists 2021-07-11 18:03:22 -04:00
Duke Leto 2331ed0c56 Default HSC is now HUSH3 and some doc fixes 2021-07-10 12:23:55 -04:00
Duke Leto 4a536d62dc Update copyrights 2021-04-17 13:03:22 -04:00
Duke Leto e2e6e44ca4 Add new -maxdebugfilesize CLI option and default to 15MB 2021-02-16 13:34:20 -05:00
Duke Leto 000ef4ac91 Keeping HUSH on the down low 2021-01-27 13:39:27 -05:00
Duke Leto b58c15b9fb update copyrights 2020-12-10 07:45:36 -05:00
Duke Leto 93a94dd9c4 Hush pid 2020-12-06 22:49:09 -05:00
Duke Leto c737c0dfaf We call them Hush Smart Chains around here 2020-11-15 11:54:06 -05:00
Duke Leto ebf0df633b Define a new season of anon Hush DPoW notaries 2020-11-15 11:13:15 -05:00
Duke Leto a535b349b0 hush.is is replacing myhush.org 2020-11-14 17:52:04 -05:00
miodragpop 3ae6205a9b tls shape-up 2020-11-03 16:09:20 +01:00
miodragpop 9ff7565901 OpenSSL replaced by WolfSSL 2020-10-28 22:13:52 +01:00
Duke Leto be16f80abc Hush Full Node is now GPLv3
Any projects which want to use Hush code from now on will need to be licensed as
GPLv3 or we will send the lawyers: https://www.softwarefreedom.org/

Notably, Komodo (KMD) is licensed as GPLv2 and is no longer compatible to receive
code changes, without causing legal issues. MIT projects, such as Zcash, also cannot pull
in changes from the Hush Full Node without permission from The Hush Developers,
which may in some circumstances grant an MIT license on a case-by-case basis.
2020-10-21 07:28:10 -04:00
Duke Leto a7f88a87aa Update copyright URL to be https 2020-09-20 13:17:38 -04:00
Duke Leto a64b721d4c update coin name in exceptions 2020-09-20 11:55:56 -04:00
Duke Leto a99b289c2a Add -zdebug 2019-12-30 23:00:06 -05:00
Duke Leto f3091936e1 Increase max debug.log file size to 100MB
ZEC took the route of disabling this by default, so debug.log files grow without limit,
in attempt to gather more data about CVE-2019-16930, which was fixed in the same emergency
release as changing this default behavior.

KMD has chosen to ignore that ZEC change, which I find reasonable. We take the middle path,
and 10X increase the size limit.

Now debug.log must hit 100MB to be resized, and potentially lose some data about attacks.
2019-12-15 19:53:49 -05:00
Duke Leto 0eaee9dc83 Good riddance 2019-11-04 10:53:36 -05:00
Duke Leto b00cda1c09 Fix lots of little things that were undone by migrating Hush to KMD source code 2019-10-25 10:17:30 -04:00
Duke Leto 0d4f96b512 Teach hushd to look in /usr/share/hush for params 2019-10-19 23:18:27 -04:00
Jonathan "Duke" Leto 52c716e625 Look in /usr/share/hush for sapling params 2019-10-18 10:58:27 -07:00
Jonathan "Duke" Leto 7ca4e59831 Merge remote-tracking branch 'jl777/FSM' into duke
Conflicts:
	src/hushd
	src/komodo_bitcoind.h
2019-07-17 20:51:52 -07:00
jl777 152c86ce84 Fix MAXERAS crash (split array overflow) 2019-07-12 16:39:33 -11:00
Jonathan "Duke" Leto 9372a95d49 Update versions, copyrights and man pages 2019-06-25 11:02:06 -07:00
Jonathan "Duke" Leto c0e98c1b64 Merge branch 'stuck' into duke 2019-05-15 09:32:43 -07:00
Jonathan "Duke" Leto c60e3d97f1 Debug weird startup bug 2019-05-01 07:22:09 -07:00
dimxy 78a9a07106 commented logging 2019-04-23 15:39:55 +05:00
dimxy 124983720d corr SplitStr c 2019-04-23 15:39:54 +05:00
dimxy 8231a83db8 corr eof state SplitStr 2019-04-23 15:39:53 +05:00
dimxy 2f24cf602f corr SplitStr 2019-04-23 15:39:52 +05:00
dimxy e85fbb10c9 corr SplitStr 2019-04-23 15:39:51 +05:00
dimxy dee17205d2 SplitStr add support for comma and space delims 2019-04-23 15:39:50 +05:00
jl777 5579964235 Remove , 2019-04-03 06:37:57 -11:00
jl777 02938d0a12 Test 2019-04-03 06:13:37 -11:00