Commit Graph
51 Commits
Author SHA1 Message Date
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
DanS d6ba1aed4e Fix RandomX validation exploit: verify nSolution contains valid RandomX hash
- Add CheckRandomXSolution() to validate RandomX PoW in nSolution field
- Add ASSETCHAINS_RANDOMX_VALIDATION activation height per chain
  (DRAGONX: 2838976, TUMIN: 1200, others: height 1)
- Add CRandomXInput serializer for deterministic RandomX hash input
- Fix CheckProofOfWork() to properly reject invalid PoW (was missing
  SMART_CHAIN_SYMBOL check, allowing bypass)
- Call CheckRandomXSolution() in hush_checkPOW and CheckBlockHeader

Without this fix, attackers could submit blocks with invalid RandomX
hashes that passed validation, as CheckProofOfWork returned early
during block loading and the nSolution field was never verified.
2026-03-03 17:28:49 -06:00
Duke 0cd2bafa3a Remove unused CLI options and update debian example config 2025-08-12 13:37:44 -04:00
Duke 2b3f9ed33f Add -ac_clearnet=0 option so an entire chain can disable clearnet connection, instead of -clearnet=0 which only applies to a single node 2025-08-08 16:09:32 -04:00
jhendrix 5d037f52ff Add HAC option -ac_minopreturnfee to change OP_RETURN fee per tx, regardless of tx size, default is 1 coin 2025-05-16 15:03:42 +01:00
Duke d39503c13b Add HAC option to allow sending funds to the transparent burn address when -ac_private=1 2025-04-29 14:52:25 -04:00
onryo 58b65f9670 Update copyrights 2024-02-27 23:59:59 +01:00
Duke 382861de2b Fixes #362
Array index 2 does not exist, which caused the foundersrewardaddress
key of getblocktemplate to be incorrect. It would either show the next
address in the list or be empty if it caused a read past the end of the
2D DEVTAX_DATA array. This is what happens in gcc 9.4.0 but since this
is technically Undefined Behavior according to the C Standard it could
cause a crash or even make demons fly out of your nose.

See http://catb.org/jargon/html/N/nasal-demons.html for details.
2023-11-27 18:45:49 -05:00
Duke 5f5983ad86 Update production devtax data 2023-11-22 07:51:00 -05:00
Duke da46d48f1d Use 20 different taddrs/scriptpubs for testing dedevtax 2023-06-28 08:46:47 -04:00
Duke 479ed54ff0 Add devtax address and scriptpub to getblocktemplate output 2023-06-23 09:13:11 -04:00
Duke 9f92bdd7dc Decentralized Devtax 2023-06-19 09:32:32 -04:00
Duke 31cc5ee901 Remove unused code 2023-06-17 21:22:41 -04:00
Duke f0ee52a94d Remove dead code 2023-04-06 12:44:37 -04:00
Duke e033a2e6eb Update copyrights to 2023 2023-02-09 18:06:03 -05:00
Jonathan "Duke" Leto 5d2307a709 Update copyrights to 2022 2022-09-19 15:45:30 -07:00
Duke Leto 26d78bedb5 Use a completely different function for RandomX mining to minimize potential of equihash consensus bugs 2022-01-22 22:31:46 -05:00
Duke Leto 6ace8b0028 Start to add RandomX support 2022-01-22 22:18:00 -05:00
Duke Leto 4f15626bb0 Cleanup 2021-09-16 14:24:27 -04:00
Duke Leto f22cbbf1e2 Cleanup and remove dead code 2021-09-16 14:12:31 -04:00
Duke Leto 49713d8a04 Various things 2021-09-14 16:00:08 -04:00
Duke Leto 3d4123ee88 Cleanup 2021-09-03 12:35:59 -04:00
Duke Leto 085f28a067 Hush does not have elections 2021-09-03 11:44:22 -04:00
Duke Leto b4cf845bf3 New listaddresses RPC and z_exportwallet RPC now can be called during RPC warmup 2021-09-02 12:22:04 -04:00
Duke Leto fde77094df All coins are HSCs with their own subdir 2021-09-01 14:53:12 -04:00
Duke Leto 7764d05261 . 2021-07-12 01:49:04 -04:00
Duke Leto aa39fc4f49 hush_baseid 2021-07-11 17:32:06 -04:00
Duke Leto fc52a00c37 hush_init 2021-07-10 12:27:30 -04:00
Duke Leto 4a536d62dc Update copyrights 2021-04-17 13:03:22 -04:00
Duke Leto cf57365698 Deletions and cleanups 2021-01-26 08:56:08 -05:00
Duke Leto 1f4c4f27e6 Refactoring 2021-01-24 08:51:17 -05:00
Duke Leto 482990936f Cleanup 2021-01-23 22:30:56 -05:00
Duke Leto 2e31b7d2dc lol 2021-01-23 22:18:57 -05:00
Duke Leto 8f70c5c356 HUSHCC 2021-01-23 20:47:44 -05:00
Duke Leto cde6d33ad1 The term 'whitelist' is racist and so we choose to call this feature 'allowlist' 2021-01-10 10:46:22 -05:00
Duke Leto 1a481f401c More cleaning and updates in prep for 3.6.0 2020-12-16 23:20:06 -05:00
Duke Leto e3a68dfdfb Hush is the extreme future, Komodo is the KYC past 2020-12-16 22:49:58 -05:00
Duke Leto 980350b9b4 Stuck in the grind 2020-12-16 22:10:59 -05:00
Duke Leto 7aacd3dfce Merge branch 'syncbug' into dev
Conflicts:
	src/metrics.cpp
2020-12-11 00:35:14 -05:00
Duke Leto 5b07e01437 Various things 2020-12-11 00:33:56 -05:00
Duke Leto b58c15b9fb update copyrights 2020-12-10 07:45:36 -05:00
Duke Leto 92865cf83b update globals 2020-12-10 06:51:37 -05:00
Duke Leto 31fc4099df HUSH NSPV 2020-12-09 19:22:51 -05:00
Duke Leto 6a30b40415 Once men turned their thinking over to machines in the hope that this would set them free.
But that only permitted other men with machines to enslave them.

      --  Reverend Mother Gaius Helen Mohiam
2020-12-09 07:23:08 -05:00
Duke Leto db702d6c55 The State Of Hush 2020-12-06 20:35:36 -05:00
Duke Leto b9633591cd Test my node 2020-12-06 19:16:16 -05:00
Duke Leto aae0336733 Playin' dat Long Game with dat Longest Chain 2020-12-06 15:47:04 -05:00
Duke Leto 0bb1c12874 Hush mining threads 2020-12-04 19:36:24 -05:00
Duke Leto 6c70956f4f Remove -exchange option which jl777 used to steal from KMD miners and notary node ops 2020-12-04 19:31:03 -05:00
Duke Leto d1ed93a703 My voice is still my passport 2020-12-04 13:08:42 -05:00