Commit Graph
95 Commits
Author SHA1 Message Date
DanSandClaude Opus 4.8 b7060c7de0 hygiene: Phase 3 — dead-code excision (~7,100 lines)
Third phase of the code-hygiene remediation: remove provably-dead code.
Each in-file deletion was adversarially verified (a per-finding investigator
plus a skeptic that greps the tree to refute deletability); the sanity grep
confirms zero dangling references, and the tree builds and self-mines clean.

Removed wholesale:
- src/cc/dapps/ (9 files, ~6,939 lines): a git-tracked but never-built Komodo
  DEX / z-migration tool (hushdex.c, zmigrate.c, cJSON.c, ...). Nothing in
  Makefile.am/configure.ac references it.

In-file dead code:
- pow.cpp: the `#ifdef original_algo` oldRT_CST_RST function (the macro is
  never defined in source or build flags) and two `if ( 0 )` debug blocks.
- walletdb.cpp: the "orphaned staking transaction" cleanup path (deadTxns) —
  DragonX is RandomX PoW with no staking, so the guard is always false and the
  block never runs; also drop the now-unused static/extern decls.
- cc/eval.h: the ProcessCC / Eval::ImportCoin / ImportPayout / DisputePayout
  declarations that have no definition anywhere in the tree.
- rpc/crosschain.cpp: the crosschainproof stub RPC (returned {} unconditionally)
  and its registrations in rpc/server.cpp, rpc/server.h, rpc/client.cpp.
- coins.cpp: the commented-out `//TODO: delete` Sprout PushAnchor template.
- wallet.cpp: the permanently-zero KMD `interest2` term in CreateTransaction.
- rpc/net.cpp: hush_longestchain's always-zero `n` var (num > (n>>1) => num>0)
  and its `if ( 0 )` debug branch.
- hush_nSPV.h / hush_nSPV_fullnode.h: three `if ( 0 && ... )` dead debug branches.
- net.cpp, crypter.h, saplingconsolidation.cpp (dup set_error_code),
  shieldcoinbase.cpp (`donation < 0` on a uint8_t), cclib.cpp (unused
  FAUCET2SIZE): single-line dead-code fixes.

Deliberately NOT touched (verification refuted the audit's "dead on DragonX"
premise): the ~2,250-line HUSH3 checkpoint block, the miner notary/timelock
paths, and hush_gateway.h — all reachable at runtime via -ac_name / -ac_*
args (the inherited Komodo assetchain model), and hush_gateway's
hush_opretvalidate is called from ConnectBlock (consensus). Dropping those
requires a deliberate decision to remove HAC/HUSH3 mode, tracked separately.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-27 13:20:51 -05:00
DanSandClaude Opus 4.8 e3247d946e 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>
2026-07-21 15:37:57 -05:00
onryo 58b65f9670 Update copyrights 2024-02-27 23:59:59 +01:00
Duke 8b82bc4d15 Delete more CCs #381 2024-02-11 00:21:29 -05:00
Duke 3a3c67e0fc Delete many things we do not want or need 2024-01-13 00:06:09 -05: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 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 59fbcbb541 . 2021-09-01 22:34:21 -04:00
Duke Leto 5c83c1b4e7 Cleanup 2021-09-01 11:02:19 -04:00
Duke Leto 4a536d62dc Update copyrights 2021-04-17 13:03:22 -04:00
Duke Leto 2e31b7d2dc lol 2021-01-23 22:18:57 -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 e4ffb34756 Next height 2020-12-16 04:51:11 -05:00
Duke Leto b58c15b9fb update copyrights 2020-12-10 07:45:36 -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 32fda42602 Notarization 2020-12-06 22:57:07 -05:00
Duke Leto b7398f812c Winners write the history books 2020-12-06 18:53:32 -05:00
Duke Leto 5d81cddcad Hush First All The Way 2020-12-04 09:52:41 -05:00
Duke Leto c737c0dfaf We call them Hush Smart Chains around here 2020-11-15 11:54:06 -05:00
Duke Leto a23b0e8388 Remove the unsupported concept of staked notaries 2020-11-15 10:28:53 -05:00
Duke Leto 0cb8318f41 src/rpc/crosschain.cpp upstream changes 2019-12-12 18:02:08 -05:00
Duke Leto fb1f989391 Revert "Clean up"
This reverts commit 5477a673e1.
2019-12-11 23:04:59 -05:00
Duke Leto 5477a673e1 Clean up 2019-12-11 16:53:49 -05:00
Mihailo Milenkovic bc665882ed nSPV modifications for CC and other fixes (#29) 2019-07-24 16:33:03 +02:00
jl777 7d38d22ce9 ->myGetTransaction for nSPV virtualisation 2019-07-12 01:35:59 -11:00
jl777 93fb6f5f51 -print 2019-07-11 21:47:48 -11:00
dimxy 406e54a00e returned isprint check 2019-05-14 19:13:18 +05:00
dimxy 9590769534 corr check for corrupt val 2019-05-14 18:43:19 +05:00
dimxy 73fd95119f added protection from corrupted old version targetSymbol 2019-05-14 15:26:21 +05:00
blackjok3r 5247451835 disable token imports on LABS. fix getimports RPC 2019-05-02 20:16:21 +08:00
jl777 ad480a67dd Merge pull request #1442 from dimxy/token-migration
Token crosschain migration support in fungible chain cluster
2019-04-19 07:25:35 -11:00
Mihailo Milenkovic b4175592e8 Add -earlytxid param and check -ac_end,-ac_supply and -ac_perc. (#23) 2019-04-19 18:41:58 +02:00
dimxy 4add699cbb token migration moved to FSM 2019-04-19 14:41:46 +05:00
Mihailo Milenkovic 0acaa3517f Adding validation for importgateway CC (#22) 2019-04-18 14:23:12 +02:00
blackjok3r cf02649727 Change MoMoMData RPC to use a 5 block KMD delay. Change MoMoM hash to use a range of 7 MoM hash. Add offset to migrate_completeimporttransaction. 2019-04-17 15:27:31 +08:00
jl777 9b62776a8b -conflict 2019-04-10 05:27:06 -11:00
jl777 01db353d61 Merge branch 'FSM' into jl777
# Conflicts:
#	src/rpc/crosschain.cpp
2019-04-10 05:21:19 -11:00
Mihailo Milenkovic 2872c88795 Adding dual daemon import and gateway import. (#21) 2019-04-10 13:09:11 +02:00
blackjok3r bce0b87e6f . 2019-04-10 02:11:40 +08:00
blackjok3r cb5aa3c45c Merge branch 'FSM' of https://github.com/jl777/komodo into jl777-FSM 2019-02-18 19:09:54 +08:00
dimxy a994a2c015 corrected invalid non-canonical
corrected burntx nExpiryHeight to prevent duplication of importtx (malleability)
added importcoin validation for amount, ac_pubkey
added sourcetx creation with amount in opret
2019-02-16 22:07:07 +05:00
blackjok3r 1e0e89523c fix segid in pindex, fix help. Remove more pointless prints. 2019-01-11 17:06:06 +08:00
blackjok3r 5cb458b5f2 fix bug with getimports... Fix miner loop deadlock with staker. Remove annoying pointless prints for staker. 2019-01-10 16:44:09 +08:00
blackjok3r 9646dd709a revert changes to import priority. Re-try flat transaction fee. Change miner lock to something safer. Add lock cs_main to import validation when accepting to mempool. 2019-01-10 01:35:18 +08:00
blackjok3r 83477b74f4 oops 2019-01-08 23:48:34 +08:00
blackjok3r 0dee67a800 set import max priotity, and also 0.001 flat fee. 2019-01-08 23:07:34 +08:00
blackjok3r 75ae32c0aa fix source chain display error 2019-01-04 14:35:34 +08:00