From a2348515a28cc208480fd54deb4106a86e3f5ac6 Mon Sep 17 00:00:00 2001 From: DanS Date: Thu, 26 Nov 2026 22:01:49 -0600 Subject: [PATCH] Remove Hush Arrakis Chain (HAC) wording; delete dead launcher scripts User-visible text: - validateaddress help: "the given DragonX address" / "The DragonX address validated". - getblockmerkletree help and error: "a given block height" / "Invalid block height parameter". - ContextualCheckBlockHeader debug log: "HAC nbits" -> "nbits". Comments and docs: HAC / Arrakis chain -> "smart chain" or "chain" (src, contrib, util, doc/DEVELOPING.md, doc/randomx.md); the HAC and Arrakis lines in doc/relnotes/README.md and contrib/debian/changelog say "smart chain". Older "Hush Smart Chain" history is left as is. Dead scripts removed: src/hush-arrakis-chain(.bat), src/smartchains and src/sc/{koolaid,kush,zex}. They all start ./hushd, which the build no longer produces, and none is in the release archive or the deb package. The Dockerfile symlink to the launcher is dropped, and the rpc-test framework defaults to src/dragonxd like util.py already does. README: P2P port is 21768 (what the network and contrib/seeds use), not 18030. No identifiers, options (-ac_*), consensus code or licence headers are changed. The miner.cpp change is a comment only. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 1 - README.md | 2 +- contrib/block_time.pl | 2 +- contrib/debian/changelog | 8 +++---- contrib/sdl_checkpoints.pl | 2 +- doc/DEVELOPING.md | 14 ++++++------- doc/randomx.md | 4 ++-- doc/relnotes/README.md | 12 +++++------ qa/rpc-tests/test_framework/test_framework.py | 4 ++-- src/bitcoin-cli.cpp | 2 +- src/chainparams.cpp | 6 +++--- src/hush-arrakis-chain | 15 ------------- src/hush-arrakis-chain.bat | 10 --------- src/hush_bitcoind.h | 2 +- src/hush_defs.h | 2 +- src/hush_notary.h | 4 ++-- src/hush_utils.h | 2 +- src/init.cpp | 2 +- src/main.cpp | 4 ++-- src/miner.cpp | 6 +++--- src/rpc/blockchain.cpp | 4 ++-- src/rpc/misc.cpp | 4 ++-- src/sc/koolaid | 3 --- src/sc/kush | 3 --- src/sc/zex | 3 --- src/smartchains | 21 ------------------- src/version.h | 2 +- src/wallet/wallet.cpp | 2 +- util/checkpoints.pl | 2 +- 29 files changed, 46 insertions(+), 102 deletions(-) delete mode 100755 src/hush-arrakis-chain delete mode 100644 src/hush-arrakis-chain.bat delete mode 100755 src/sc/koolaid delete mode 100755 src/sc/kush delete mode 100755 src/sc/zex delete mode 100755 src/smartchains diff --git a/Dockerfile b/Dockerfile index 946cbbd88..f9369f3a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,6 @@ RUN cd /hush && \ RUN ln -sf /hush/src/hushd /usr/bin/hushd && \ ln -sf /hush/src/hush-tx /usr/bin/hush-tx && \ ln -sf /hush/src/wallet-utility /usr/bin/hush-wallet-utility && \ - ln -sf /hush/src/hush-arrakis-chain /usr/bin/hush-arrakis-chain && \ ln -sf /hush/util/docker-entrypoint.sh /usr/bin/entrypoint && \ ln -sf /hush/util/docker-hush-cli.sh /usr/bin/hush-cli diff --git a/README.md b/README.md index 479f0422a..ed26398ef 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ this can take a while, so most users start from the [bootstrap snapshot](#fastes | Block reward | 3 DRAGONX, halving every 3,500,000 blocks | | Max block size | 4 MB | | RPC port | 21769 | -| P2P port | 18030 | +| P2P port | 21768 | | Data directory | `~/.hush/DRAGONX` (Linux) | | Config file | `DRAGONX.conf` | | Binaries | `dragonxd`, `dragonx-cli`, `dragonx-tx` | diff --git a/contrib/block_time.pl b/contrib/block_time.pl index 252e7fd38..c1f219644 100755 --- a/contrib/block_time.pl +++ b/contrib/block_time.pl @@ -27,7 +27,7 @@ if ($block <= $blockcount) { } else { my $diff = $block - $blockcount; # TODO: support custom blocktimes - # assumes HACs use default blocktime of 60s + # assumes smart chains use default blocktime of 60s my $minpb = $coin ? 1 : 0.6; # 36s in minutes for DragonX my $minutes = $diff*$minpb; my $seconds = $minutes*60; diff --git a/contrib/debian/changelog b/contrib/debian/changelog index 87f33a042..b0c047e50 100644 --- a/contrib/debian/changelog +++ b/contrib/debian/changelog @@ -169,7 +169,7 @@ hush (3.10.5) stable; urgency=medium * It cannot be determined from public blockchain data if a donation is being made, as it takes the place of a Sietch output * It cannot be determined from public blockchain data the amount of the donation * Donations do not create new transactions, do not use additional blockspace and cannot be detected by anyone but the sender or reciever - * New HAC option `ac_clearnet` can be used to disable clearnet networking for an entire blockchain instead of just a single node + * New smart chain option `ac_clearnet` can be used to disable clearnet networking for an entire blockchain instead of just a single node * Updated test framework and tests which allowed the fixing of the `z_sendmany` bug above * Faster compiling of RandomX internals * GMP dependency removed, as it is no longer needed @@ -184,7 +184,7 @@ hush (3.10.4) stable; urgency=medium * New CLI option -clearnet=0 which disables clearnet networking * Using -mineraddress with -clearnet=0 disallowed since would reduce privacy * Add CLI options -disableipv4 and -disableipv6 to disable IPv4 or IPv6 - * New HAC CLI consensus option -ac_minopreturnfee + * New smart chain CLI consensus option -ac_minopreturnfee * Updated ASmap, which maps IP addresses to Autonomous System (AS) numbers * Added ASmap health check, which logs stats about the ASmap once per 24 hours * Improved cjdns/i2p/tor docs @@ -199,11 +199,11 @@ hush (3.10.3) stable; urgency=high * Set minimum fee to 0.1 HUSH per 1 KB of data if `OP_RETURN` is used. * Absurd fee allows sending amount < fee; used only in a full node. * Fixed various bugs relating to lock ordering and missing locks - * Fixed RPC docs for addnode and disconnectnode having incorrect port for HACs + * Fixed RPC docs for addnode and disconnectnode having incorrect port for smart chains * Value of DEBUG_LOCKORDER is now logged to debug.log on node startup * New script ./debug-build.sh to make it easier to make debug builds * DragonX nodes now have their own list of seed nodes - * Hush nodes now have own protocol version independent from HACs + * Hush nodes now have own protocol version independent from smart chains * Fixed off-by-one bug in `newSietchRecipient` * Performance improvement to `ActivateBestChainStep` ed86f2dd1d * Improved navigation in README for new users. diff --git a/contrib/sdl_checkpoints.pl b/contrib/sdl_checkpoints.pl index 05b6ac128..4629054f1 100755 --- a/contrib/sdl_checkpoints.pl +++ b/contrib/sdl_checkpoints.pl @@ -11,7 +11,7 @@ use warnings; use strict; # call this script like this to generate checkpoints for another chain: -# CLI=./src/hac-cli ./contrib/sdl_checkpoints.pl ... +# CLI=./src/dragonx-cli ./contrib/sdl_checkpoints.pl ... my $cli = $ENV{CLI} || "./src/dragonx-cli"; my $gethash = "$cli getblockhash"; diff --git a/doc/DEVELOPING.md b/doc/DEVELOPING.md index 31a441e73..5215799ec 100644 --- a/doc/DEVELOPING.md +++ b/doc/DEVELOPING.md @@ -97,27 +97,27 @@ If you are adding a new CLI option that changes consensus rules such as convention is that if a CLI option affects consensus, it MUST begin with `-ac_` and if it does not affect consensus (such as -datadir) then it MUST NOT begin with `-ac_`. Originally the `ac` meant "asset chain" but now it means "affects -consensus" or "arrakis chain", take your pick. +consensus". The reason for this is the `extraptr` variable is used to deterministically generate the "chain magic" `ASSETCHAINS_MAGIC` as well as the default p2p and -rpc ports for a HAC. This means that if two HACs have *exactly* the same +rpc ports for a chain. This means that if two chains have *exactly* the same consensus options except for `-ac_foo` (even if they have the same `-ac_name`) then they will still get different chain magic values and p2p and rpc ports. -This is a way of preventing HACs with different consensus rules from trying to -talk with each other when they should not. For instance, if you make a HAC with +This is a way of preventing chains with different consensus rules from trying to +talk with each other when they should not. For instance, if you make a chain with `-ac_name=MYCOIN` on one machine with one set of consensus rules and then -another HAC with the same name on a different machine but with different +another chain with the same name on a different machine but with different consensus rules, the chain magic being different (as well as the default p2p port) are ways to prevent them from communicating. This is good because these -two HACs will eventually chain fork due to their different consensus rules and +two chains will eventually fork due to their different consensus rules and ban each other, wasting time, bandwidth and sanity. An example of this pattern in the Git history is the commit which added the `-ac_burn` consensus changing option; search the log for `ac_burn` to find it. The chain magic value is the CRC32 checksum of every non-default consensus -option the HAC uses. +option the chain uses. Also make sure to actually validate the new consensus option! That is probably going to happen in `src/main.cpp` . If you don't, a malicious node can just diff --git a/doc/randomx.md b/doc/randomx.md index 341c67057..26a841378 100644 --- a/doc/randomx.md +++ b/doc/randomx.md @@ -39,8 +39,8 @@ are baked into DragonX consensus. ## RandomX key-block tuning options RandomX periodically rotates the "key block" it derives its dataset from. Two -advanced options control this. They are inherited from the upstream Hush / -Arrakis-chain tooling and default to values suited to DragonX's 36s block time; +advanced options control this. They are inherited from the upstream Hush +tooling and default to values suited to DragonX's 36s block time; you should not normally change them: * `-ac_randomx_interval` controls how often the RandomX key block changes diff --git a/doc/relnotes/README.md b/doc/relnotes/README.md index 49689ce02..9e2d05f96 100644 --- a/doc/relnotes/README.md +++ b/doc/relnotes/README.md @@ -33,7 +33,7 @@ This is an OPTIONAL but RECOMMENDED upgrade. * It cannot be determined from public blockchain data if a donation is being made, as it takes the place of a Sietch output * It cannot be determined from public blockchain data the amount of the donation * Donations do not create new transactions, do not use additional blockspace and cannot be detected by anyone but the sender or reciever - * New HAC option `ac_clearnet` can be used to disable clearnet networking for an entire blockchain instead of just a single node + * New smart chain option `ac_clearnet` can be used to disable clearnet networking for an entire blockchain instead of just a single node * Updated test framework and tests which allowed the fixing of the `z_sendmany` bug above * Faster compiling of RandomX internals * GMP dependency removed, as it is no longer needed @@ -67,7 +67,7 @@ problems finding nodes, you want to upgrade. ``` * Using -mineraddress with -clearnet=0 is disallowed since it would reduce privacy * Add CLI options `-disableipv4` and `-disableipv6` which can be used to disable IPv4 or IPv6 - * New HAC CLI consensus option `-ac_minopreturnfee` + * New smart chain CLI consensus option `-ac_minopreturnfee` * `OP_RETURN` minimum fee per tx, regardless of tx size, default is 1 coin, specified in puposhis * Updated ASmap, which maps IP addresses to Autonomous System (AS) numbers * Added ASmap health check, which logs stats about the ASmap once per 24 hours @@ -81,11 +81,11 @@ problems finding nodes, you want to upgrade. * Set minimum fee to 0.1 HUSH per 1 KB of data if `OP_RETURN` is used. * A feature in absurd fee that allows sending amount < fee, can be used only in a full node by advanced users. * Fixed various bugs relating to lock ordering and missing locks - * Fixed RPC docs for addnode and disconnectnode having the incorrect port for HACs + * Fixed RPC docs for addnode and disconnectnode having the incorrect port for smart chains * Value of DEBUG_LOCKORDER is now logged to debug.log on node startup * New script ./debug-build.sh to make it easier to make debug builds * DragonX nodes now have their own list of seed nodes - * Hush nodes now have their own protocol version which is independent from HACs + * Hush nodes now have their own protocol version which is independent from smart chains * Fixed off-by-one bug in `newSietchRecipient` * Performance improvement to `ActivateBestChainStep` https://git.hush.is/hush/hush3/commit/ed86f2dd1da370fe2dbf7db475afc41b218cbc5f * Improved navigation in README for new users. @@ -102,7 +102,7 @@ problems finding nodes, you want to upgrade. * Mining now starts faster because instead of only using 2 threads to prepare data needed to mine, now it uses all physical cores https://git.hush.is/hush/hush3/commit/1b5422eb2ddcedd9aabdf4f039144f9eef5c6f95 * RandomX mining takes slightly less memory - * `ac_sapling` is no longer an option for Arrakis Chains + * `ac_sapling` is no longer an option for smart chains * All chains enable Sapling at height 1 like Hush + DragonX * This means there is no need to call `NetworkUpgradeActive` on every block height which means syncing is faster @@ -113,7 +113,7 @@ problems finding nodes, you want to upgrade. * Upgraded WolfSSL to 5.2.0 on Linux+Mac : https://git.hush.is/hush/hush3/issues/380 * Upgraded to 4.8.1 on Windows because newer versions do not compile on Windows: https://git.hush.is/hush/hush3/commit/5e5a15018d0e55f094c89282a1983104f4d4387a * Only Hush + DragonX will automatically connect to various seed nodes https://git.hush.is/hush/hush3/issues/379 - * Other Arrakis Chains must opt-in via -connect or -addnode + * Other smart chains must opt-in via -connect or -addnode * Updated i2p seed node: https://git.hush.is/hush/hush3/commit/8c8b6e88f0c076c86c713e7e22e2d826202cc64d * Better error message: https://git.hush.is/hush/hush3/commit/f64c10baa9ae6940f434f6ff6750b299c1da548e, https://git.hush.is/hush/hush3/commit/f71f8124c3ffb8df6d83f6fd00201cb11aa0f239 * Improve `hush_scanner` and seed node contrib file: https://git.hush.is/hush/hush3/commit/16dd3aef74ac312bc8953af34a3d9a297b03d9f4 diff --git a/qa/rpc-tests/test_framework/test_framework.py b/qa/rpc-tests/test_framework/test_framework.py index 619a9ccf8..e9ca25450 100755 --- a/qa/rpc-tests/test_framework/test_framework.py +++ b/qa/rpc-tests/test_framework/test_framework.py @@ -167,10 +167,10 @@ class ComparisonTestFramework(BitcoinTestFramework): def add_options(self, parser): parser.add_option("--testbinary", dest="testbinary", - default=os.getenv("BITCOIND", "hush-arrakis-chain"), + default=os.getenv("BITCOIND", "src/dragonxd"), help="bitcoind binary to test") parser.add_option("--refbinary", dest="refbinary", - default=os.getenv("BITCOIND", "hush-arrakis-chain"), + default=os.getenv("BITCOIND", "src/dragonxd"), help="bitcoind binary to use for reference nodes (if any)") def setup_chain(self): diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 367355419..fdc8c9dc2 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -87,7 +87,7 @@ static int AppInitRPC(int argc, char* argv[]) ParseParameters(argc, argv); std:string name; - // default HAC is DRAGONX itself, which to the internals, is also a HAC + // default chain is DRAGONX itself, which to the internals is also a smart chain name = GetArg("-ac_name","DRAGONX"); if ( !name.empty() ) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index d56993c1c..786daa5a2 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -117,7 +117,7 @@ public: consensus.nPowMaxAdjustDown = 32; // 32% adjustment down consensus.nPowMaxAdjustUp = 16; // 16% adjustment up // we are emulating old node behavior at startup, they used 150s - consensus.nPowTargetSpacing = 150; // 75; // HUSH is 75 seconds, Hush Arrakis Chains are 60 seconds by default + consensus.nPowTargetSpacing = 150; // 75; // HUSH is 75 seconds, smart chains are 60 seconds by default consensus.nPowAllowMinDifficultyBlocksAfterHeight = boost::none; // HUSH never had Sprout in our blockchain history, but some internals require *knowing* about Sprout // or it breaks backward compatibility. We do what we can. @@ -366,7 +366,7 @@ public: assert(maxUint/UintToArith256(consensus.powLimit) >= consensus.nPowAveragingWindow); consensus.nPowMaxAdjustDown = 0; // Turn off adjustment down consensus.nPowMaxAdjustUp = 0; // Turn off adjustment up - consensus.nPowTargetSpacing = 60; // HAC's default to 60 seconds so a theoretical testnet should as well + consensus.nPowTargetSpacing = 60; // smart chains default to 60 seconds so a theoretical testnet should as well consensus.nPowAllowMinDifficultyBlocksAfterHeight = 0; ups[Consensus::BASE_SPROUT].nProtocolVersion = 170002; ups[Consensus::BASE_SPROUT].nActivationHeight = NUNU::ALWAYS_ACTIVE; @@ -6074,7 +6074,7 @@ void *chainparams_commandline() { }; } else { - // all other HAC's with no checkpoints + // all other smart chains with no checkpoints checkpointData = //(Checkpoints::CCheckpointData) { boost::assign::map_list_of diff --git a/src/hush-arrakis-chain b/src/hush-arrakis-chain deleted file mode 100755 index 8130949b9..000000000 --- a/src/hush-arrakis-chain +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -# Copyright (c) 2016-2024 The Hush developers -# set working directory to the location of this script -# readlink -f does not always exist -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd $DIR -DIR="$( cd "$( dirname "$( readlink "${BASH_SOURCE[0]}" )" )" && pwd )" -cd $DIR - -DEFAULTS="" - -# People can just use hushd going forward, but this script makes it -# more clear what is going on -HUSH="./hushd" -$HUSH $DEFAULTS "$@" diff --git a/src/hush-arrakis-chain.bat b/src/hush-arrakis-chain.bat deleted file mode 100644 index 63a9ea111..000000000 --- a/src/hush-arrakis-chain.bat +++ /dev/null @@ -1,10 +0,0 @@ -:: 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 -@call :GET_CURRENT_DIR -@cd %THIS_DIR% -hushd %* -@goto :EOF - -:GET_CURRENT_DIR -@pushd %~dp0 diff --git a/src/hush_bitcoind.h b/src/hush_bitcoind.h index 3d09cdac5..e6c8ce5b4 100644 --- a/src/hush_bitcoind.h +++ b/src/hush_bitcoind.h @@ -961,7 +961,7 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams); // This function defines the Hush Founders Reward (AKA Dev Tax) // 10% of all block rewards go towards Hush core team // If you do not like this, you are encouraged to fork the chain -// or start your own Hush Arrakis Chain: https://git.hush.is/hush/hush-arrakis-chains +// or start your own chain. // HUSH supply curve cannot be exactly represented via CLI args, so we do it ourselves. // You specify the BR, and the FR % gets added so 10% of 12.5 is 1.25 // but to tell the AC params, I need to say "11% of 11.25" is 1.25 diff --git a/src/hush_defs.h b/src/hush_defs.h index a31e68029..821b96b65 100644 --- a/src/hush_defs.h +++ b/src/hush_defs.h @@ -72,7 +72,7 @@ const uint32_t nHushHardforkHeight4 = 1605555; const uint32_t nHushHardforkTimestamp = 1580303652; // Jan 29nd 1pm GMT const uint32_t nHushHardforkTimestamp2 = 1594425600; // Jul 11th 12a GMT -// Used by HACs +// Used by smart chains static const uint32_t HUSH_SEASON_TIMESTAMPS[NUM_HUSH_SEASONS] = {1525132800, 1563148800, nHushHardforkTimestamp, nHushHardforkTimestamp2, nHushHardforkTimestamp2*5, nHushHardforkTimestamp2*6, nHushHardforkTimestamp2*7}; // Used by HUSH3+TUSH diff --git a/src/hush_notary.h b/src/hush_notary.h index 0a66c6877..000fb0c30 100644 --- a/src/hush_notary.h +++ b/src/hush_notary.h @@ -101,7 +101,7 @@ int32_t hush_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestamp) int32_t i,htind,n; uint64_t mask = 0; struct knotary_entry *kp,*tmp; static uint8_t hush_pubkeys[NUM_HUSH_SEASONS][64][33],didinit[NUM_HUSH_SEASONS]; - //HUSH3+TUSH use block heights, HACs use timestamps + //HUSH3+TUSH use block heights, other smart chains use timestamps if ( timestamp == 0 && SMART_CHAIN_SYMBOL[0] != 0 ) { timestamp = hush_heightstamp(height); } else if ( SMART_CHAIN_SYMBOL[0] == 0 ) { @@ -112,7 +112,7 @@ int32_t hush_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestamp) int32_t hush_season = 0; bool ishush3 = strncmp(SMART_CHAIN_SYMBOL, "HUSH3",5) == 0 ? true : false; bool istush = strncmp(SMART_CHAIN_SYMBOL, "TUSH",4) == 0 ? true : false; - // TUSH uses height activation like HUSH3, other HACs use timestamps + // TUSH uses height activation like HUSH3, other smart chains use timestamps hush_season = (ishush3 || istush) ? gethushseason(height) : getacseason(timestamp); if(IS_HUSH_NOTARY) { diff --git a/src/hush_utils.h b/src/hush_utils.h index 3ff16791a..5761349f6 100644 --- a/src/hush_utils.h +++ b/src/hush_utils.h @@ -1913,7 +1913,7 @@ void hush_args(char *argv0) } else if (strncmp(SMART_CHAIN_SYMBOL, "TUMIN", 5) == 0) { ASSETCHAINS_RANDOMX_VALIDATION = 1200; // TBD: set to coordinated upgrade height } else { - ASSETCHAINS_RANDOMX_VALIDATION = 1; // all other RandomX HACs: enforce from height 1 + ASSETCHAINS_RANDOMX_VALIDATION = 1; // all other RandomX smart chains: enforce from height 1 } LogPrintf("ASSETCHAINS_RANDOMX_VALIDATION set to %d for %s\n", ASSETCHAINS_RANDOMX_VALIDATION, SMART_CHAIN_SYMBOL); } diff --git a/src/init.cpp b/src/init.cpp index 0da56523a..3a9f6cca8 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -824,7 +824,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-ac_randomx_interval", _("Controls how often the RandomX key block will change, default is 1024")); strUsage += HelpMessageOpt("-ac_randomx_lag", _("Sets the number of RandomX blocks to wait before updating the key block, default is 64")); strUsage += HelpMessageOpt("-ac_reward", _("Block reward in satoshis, default is 0")); - // All HAC's activate sapling at block height 1, other heights are not supported + // All smart chains activate sapling at block height 1, other heights are not supported //strUsage += HelpMessageOpt("-ac_sapling", _("Sapling activation block height")); strUsage += HelpMessageOpt("-ac_script", _("P2SH/multisig address to receive founders rewards")); strUsage += HelpMessageOpt("-ac_supply", _("Starting supply, default is 10")); diff --git a/src/main.cpp b/src/main.cpp index eba44f7a5..6d64b171a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5372,7 +5372,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta } } - // Check Proof-of-Work difficulty for smart chains (HACs) + // Check Proof-of-Work difficulty for smart chains // Without this check, an attacker can submit blocks with arbitrary nBits // (e.g., powLimit / diff=1) and they will be accepted, allowing the chain // to be flooded with minimum-difficulty blocks. @@ -5381,7 +5381,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta if (!ishush3 && SMART_CHAIN_SYMBOL[0] != 0 && nHeight > daaForkHeight) { unsigned int nNextWork = GetNextWorkRequired(pindexPrev, &block, consensusParams); if (fDebug) { - LogPrintf("%s: HAC nbits height=%d expected=%lu actual=%lu\n", + LogPrintf("%s: nbits height=%d expected=%lu actual=%lu\n", __func__, nHeight, (unsigned long)nNextWork, (unsigned long)block.nBits); } if (block.nBits != nNextWork) { diff --git a/src/miner.cpp b/src/miner.cpp index a7a1ba2ef..1d460f9d6 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -1216,15 +1216,15 @@ void static RandomXMiner() char randomxHash[RANDOMX_HASH_SIZE]; rxdebug("%s: created randomxHash of size %d\n", RANDOMX_HASH_SIZE); char randomxKey[82]; // randomx spec says keysize of >60 bytes is implementation-specific - // initial randomx key is unique to every Hush Arrakis Chain, and has at least 9 bytes (2^9=128 bits) of entropy + // initial randomx key is unique to every smart chain, and has at least 9 bytes (2^9=128 bits) of entropy // since magic is 4 bytes, rpc port is 4 bytes and smart chain symbol must be at least 1 character long snprintf(randomxKey, 81, "%08x%s%08x", ASSETCHAINS_MAGIC, SMART_CHAIN_SYMBOL, ASSETCHAINS_RPCPORT); // With the defaults of 1024 and 64 // the key block will change every ~21.3 hours with a 75s block time - // and every ~17 hours with the default 60s block time for HACs + // and every ~17 hours with the default 60s block time for smart chains static int randomxInterval = GetRandomXInterval(); - // This lag is 80 mins for 75s blocktime and 64 mins for 60s (default) blocktime for HACs + // This lag is 80 mins for 75s blocktime and 64 mins for 60s (default) blocktime for smart chains static int randomxBlockLag = GetRandomXBlockLag(); randomx_vm *myVM = nullptr; diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 8dcd80635..7f9395730 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -880,7 +880,7 @@ UniValue getblockmerkletree(const UniValue& params, bool fHelp, const CPubKey& m if (fHelp || params.size() != 1 ) throw runtime_error( "getblockmerkletree height\n" - "\nGet full merkletree for a given Hush or HAC block height.\n" + "\nGet full merkletree for a given block height.\n" "\nArguments:\n" "1. height (int, required) block height\n" "\nResult:\n" @@ -898,7 +898,7 @@ UniValue getblockmerkletree(const UniValue& params, bool fHelp, const CPubKey& m int nHeight = params[0].get_int(); if ( (nHeight < 1) || (nHeight > chainActive.LastTip()->GetHeight()) ) { - throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid Hush or HAC block height parameter"); + throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid block height parameter"); } phushblockindex = chainActive[nHeight]; diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 0eef8f3ca..998e527d5 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -367,13 +367,13 @@ UniValue validateaddress(const UniValue& params, bool fHelp, const CPubKey& mypk if (fHelp || params.size() != 1) throw runtime_error( "validateaddress \"addr\"\n" - "\nReturn information about the given Hush or Hush Arrakis Chain (HAC) address.\n" + "\nReturn information about the given DragonX address.\n" "\nArguments:\n" "1. \"addr\" (string, required) The address to validate\n" "\nResult:\n" "{\n" " \"isvalid\" : true|false, (boolean) If the address is valid or not. If not, this is the only property returned.\n" - " \"address\" : \"addr\", (string) The Hush or HAC address validated\n" + " \"address\" : \"addr\", (string) The DragonX address validated\n" " \"scriptPubKey\" : \"hex\", (string) The hex encoded scriptPubKey generated by the address\n" " \"ismine\" : true|false, (boolean) If the address is yours or not\n" " \"isscript\" : true|false, (boolean) If the key is a script\n" diff --git a/src/sc/koolaid b/src/sc/koolaid deleted file mode 100755 index a46b71aeb..000000000 --- a/src/sc/koolaid +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -# Copyright (c) 2018-2024 The Hush developers -./hush-arrakis-chain -ac_name=KOOLAID $@ diff --git a/src/sc/kush b/src/sc/kush deleted file mode 100755 index a5349a6a3..000000000 --- a/src/sc/kush +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -# Copyright (c) 2018-2024 The Hush developers -./hush-arrakis-chain -ac_name=KUSH $@ diff --git a/src/sc/zex b/src/sc/zex deleted file mode 100755 index 55b4640ef..000000000 --- a/src/sc/zex +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -# Copyright (c) 2018-2024 The Hush developers -./hush-arrakis-chain -ac_name=ZEX $@ diff --git a/src/smartchains b/src/smartchains deleted file mode 100755 index e48482da2..000000000 --- a/src/smartchains +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash -# Copyright (c) 2018-2024 The Hush developers -set -eo pipefail - -# You can now add delay line to pubkey.txt file -source pubkey.txt -overide_args="$@" -seed_ip=$(SEEDNODE) -hsc='./hush-arrakis-chain' - -if [ -z "$delay" ]; then delay=20; fi - -./listassetchainparams | while read args; do - gen="" - if [ $[RANDOM % 10] == 1 ]; then - gen=" -gen -genproclimit=1" - fi - - $hsc $gen $args $overide_args -pubkey=$pubkey -addnode=$seed_ip & - sleep $delay -done diff --git a/src/version.h b/src/version.h index 68aaccd11..ca278c444 100644 --- a/src/version.h +++ b/src/version.h @@ -37,7 +37,7 @@ static const int GETHEADERS_VERSION = 31800; //! disconnect from peers older than this proto version (HUSH mainnet) static const int MIN_HUSH_PEER_PROTO_VERSION = 1987426; -//! disconnect from peers older than this proto version (DragonX/HACs) +//! disconnect from peers older than this proto version (DragonX/smart chains) //! Set to 2000000 to reject nodes without RandomX validation fix static const int MIN_PEER_PROTO_VERSION = 2000000; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 26c916429..439133e7e 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -831,7 +831,7 @@ void CWallet::RefreshConsolidationSuggestion() { // silent no-op wherever it cannot act (locked wallet, no owned coinbase, // external -mineraddress), so it is safe to run on every node. void CWallet::RunAutoShieldCoinbase(int blockHeight) { - // Sapling is always active from height 1 on DragonX+HACs. + // Sapling is always active from height 1 on DragonX and other smart chains. if (blockHeight == 0) return; diff --git a/util/checkpoints.pl b/util/checkpoints.pl index 5a4c068c8..fff23eb6f 100755 --- a/util/checkpoints.pl +++ b/util/checkpoints.pl @@ -31,7 +31,7 @@ my $acname = shift; if ($acname) { # TODO: is acname valid? $cli .= " -ac_name=$acname"; - # HSC's by default have a blocktime of 60s + # smart chains by default have a blocktime of 60s $perday = 1440; } else { $acname = 'DRAGONX';