cleanup: rebrand residual user-facing "HUSH" strings to DragonX
Sweeps the leftover coin-name strings in RPC help text, RPC output, and log
messages that the currency-unit change didn't cover:
- RPC help: "mining reward amount in HUSH" -> DRAGONX (mining.cpp x2);
"at least minbal HUSH" -> DRAGONX (rpcwallet.cpp); "the HUSH address" /
"(string) HUSH address" -> DragonX (rawtransaction.cpp)
- RPC output: the SMART_CHAIN_SYMBOL[0]==0 ? "HUSH" : SYMBOL coin-name fallback
(crosschain/misc/mining/blockchain) -> "DRAGONX"; the notarizations JSON key
make_pair("HUSH", ...) -> "DRAGONX"
- Logs: "HUSH blocktime changing", "stopping HUSH HTTP/REST/RPC",
"HUSH raw magic=" -> DragonX
Left untouched (verified): the 82 "HUSH3"/ishush3 chain-symbol consensus checks;
hush_globals.h CURRENCIES[] price-oracle basket (internal lookup, dead feature
on DragonX); hush.h notarization debug printf; a commented-out cout in main.cpp.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -387,7 +387,7 @@ UniValue genminingCSV(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
if (fHelp || params.size() != 0 )
|
||||
throw runtime_error("genminingCSV\n");
|
||||
LOCK(cs_main);
|
||||
sprintf(fname,"%s_mining.csv",SMART_CHAIN_SYMBOL[0] == 0 ? "HUSH" : SMART_CHAIN_SYMBOL);
|
||||
sprintf(fname,"%s_mining.csv",SMART_CHAIN_SYMBOL[0] == 0 ? "DRAGONX" : SMART_CHAIN_SYMBOL);
|
||||
if ( (fp= fopen(fname,"wb")) != 0 )
|
||||
{
|
||||
fprintf(fp,"height,nTime,nBits,bnTarget,bnTargetB,diff,solvetime\n");
|
||||
@@ -1019,8 +1019,8 @@ UniValue getblocksubsidy(const UniValue& params, bool fHelp, const CPubKey& mypk
|
||||
"1. height (numeric, optional) The block height. If not provided, defaults to the current height of the chain.\n"
|
||||
"\nResult:\n"
|
||||
"{\n"
|
||||
" \"miner\" : x.xxx (numeric) The mining reward amount in HUSH.\n"
|
||||
" \"ac_pubkey\" : x.xxx (numeric) The mining reward amount in HUSH.\n"
|
||||
" \"miner\" : x.xxx (numeric) The mining reward amount in DRAGONX.\n"
|
||||
" \"ac_pubkey\" : x.xxx (numeric) The mining reward amount in DRAGONX.\n"
|
||||
"}\n"
|
||||
"\nExamples:\n"
|
||||
+ HelpExampleCli("getblocksubsidy", "1000")
|
||||
|
||||
Reference in New Issue
Block a user