Commit Graph
62 Commits
Author SHA1 Message Date
DanSandClaude Opus 4.8 81f803948c hygiene: Phase 6 (partial) — fix 7 verified bugs + quick-wins + dedup
From the Phase-6 structural scoping: land the verified behavioral bugs and
the safe quick-wins/dedups now; the large refactors (monolith splits, ~180
header globals) and consensus-adjacent items stay deferred. Built clean;
self-mined; verifychain=true.

BUGS (verified by reading the code):
- net.cpp CNode::Ban: a braceless `if (subNet.Match(...))` left
  `pnode->fDisconnect = true;` OUTSIDE the guard, so banning any one subnet
  marked EVERY connected peer for disconnect (dropped the whole peer set).
  Wrapped the two statements in braces. (LIVE, high severity.)
- rpcdump.cpp importwallet: the `!fGood -> throw "Error adding some keys"`
  check was trapped inside the `if (fRescan)` block, so importwallet with
  rescan=false silently reported success when key import failed. Hoisted the
  check before the rescan branch and cleaned the garbled braces/indentation.
- wallet.cpp CommitTransaction: ignored AddToWallet()'s return, so a failed
  disk-persist of a just-signed spend was swallowed while the tx broadcast.
  Now logs a hard error on failure.
- hush_nSPV_fullnode.h: the UTXOS branch declared `uint8_t filter` while the
  twin TXIDS branch uses `uint32_t filter`; dragon_rwnum switches on
  sizeof(filter), so the utxos path parsed only 1 of 4 wire filter bytes.
  Widened to uint32_t.
- asyncrpcoperation_sweep.cpp: LogPrintf("%s ... %s", one-arg) read a missing
  vararg; added the __func__ argument.
- rpcdump.cpp importprivkey: inner `auto secret_key` shadowed the outer
  uint8_t and changed the type into DecodeCustomSecret; dropped the shadow.
- rpcdump.cpp getrescaninfo: char[8] + sprintf("%.4f") overflows when the
  ratio >= 10.0 (transient reorg); widened to char[16] + snprintf.

QUICK WINS: removed the duplicate DRAGON_MAXSCRIPTSIZE #define; pinned the
dead HUSH3-branch NOTARISATION_SCAN_LIMIT_BLOCKS to 1440; fixed init typos
(fRequestShutdown, RPC warmup).

DEDUP: extracted the 19-line try/catch error-mapping block — copy-pasted
identically into all six async operations — into
AsyncRPCOperation::set_error_from_current_exception(), so the mapping is
edited in one place. Behavior-identical (verified all six blocks were byte-
identical first).

Deferred (endorsed by the scoping, better as their own PRs): addrman Select_
dedup, the pow.cpp powLimit helper (consensus file), the miner CreateNewBlock
lock-asymmetry, the wallet monolith splits, and the ~180-global / consensus-
retarget / Komodo-heritage work.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-27 15:55:00 -05:00
onryo 58b65f9670 Update copyrights 2024-02-27 23:59:59 +01: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 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 980350b9b4 Stuck in the grind 2020-12-16 22:10:59 -05:00
Duke Leto b58c15b9fb update copyrights 2020-12-10 07:45:36 -05:00
Duke Leto 18ce9a6070 crosschain updates 2020-12-09 18:30:57 -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 c737c0dfaf We call them Hush Smart Chains around here 2020-11-15 11:54:06 -05:00
dimxy 4add699cbb token migration moved to FSM 2019-04-19 14:41:46 +05: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
blackjok3r e93fd95815 Merge branch 'FSM' of https://github.com/jl777/komodo into ac_import 2019-01-02 23:29:52 +08:00
jl777 e090330823 remove mutually exclusive constraint on selfimport
-ac_beam and -ac_coda cannot be active at the same time

Clusters can do import coin normally even with self-import chains.

-ac_import=KMD (any bitcoinprotocol coin) will make a side chain (not
implemented yet)

Theoretically -ac_beam or -ac_coda can work with side chain (not
implemented yet other than chain params)
2019-01-01 23:34:31 -11:00
jl777 0ea9ae3c05 Update copyright to 2019 2018-12-31 21:41:05 -11:00
jl777 a3f0af586e Check for -port 2018-12-28 03:25:18 -11:00
jl777 2d5537af00 Stubs for -ac_import 2018-12-27 00:59:35 -11:00
blackjok3r 7349a49641 Merge branch 'FSM' of https://github.com/jl777/komodo
fix
2018-12-13 12:40:53 +08:00
jl777 d8282c5739 GetHeight() 2018-12-06 02:08:39 -11:00
blackjok3r 05908caa14 Prevent possible skip of notarisation on KMD 2018-12-06 20:26:41 +08:00
blackjok3rtt 0480ddbfba Merge pull request #19 from libscott/manymomoms
check many MoMoMs on tx import
2018-12-06 20:24:02 +08:00
blackjok3r aba3093527 try fix 2018-11-29 23:36:51 +08:00
blackjok3r 697eddcc79 Merge branch 'FSM' of https://github.com/jl777/komodo into jl777-FSM
merge
2018-11-29 23:22:32 +08:00
jl777 e5d17599f0 Syntax 2018-11-23 04:24:35 -11:00
jl777 7d54574d4c komodo_getblockindex instead of mapblockindex[] to prevent creation of new entry on miss 2018-11-23 04:17:34 -11:00
blackjok3r 507060d6d6 Merge branch 'manymomoms' of https://github.com/libscott/komodo into libscott-manymomoms
does this work lol
2018-11-02 00:47:55 +08:00
Scott Sadler f51c4d4716 check many MoMoMs on tx import 2018-11-01 10:12:18 +01:00
blackjok3r d1e85c5128 fix for notarisations in KMD more than 1 block. 2018-11-01 13:51:07 +08:00
blackjok3r f46d51c08f fix? 2018-10-31 15:16:06 +08:00
blackjok3r f0cb2e1187 fix 2018-10-31 14:51:23 +08:00
blackjok3r de707f9e1f add some prints 2018-10-31 14:49:21 +08:00
blackjok3r e0235aa036 Revert "Merge branch 'momom_printsonly' into master"
This reverts commit e4e1c3874e, reversing
changes made to 9fbf73b632.

revert this stupid commit git made by accident!
2018-10-31 12:20:06 +08:00
miketout 4b729ec577 Changes for most chain power rule 2018-09-28 01:38:14 -07:00
blackjok3r 985808cbb4 try print momom to file 2018-09-27 21:38:00 +08:00
blackjok3r a5c1bc3360 add target to MoMoM print 2018-09-27 19:50:45 +08:00
blackjok3r 53771be236 make it so prints are diffrent. 2018-09-19 15:31:09 +08:00
blackjok3r 47656a74d0 ; 2018-09-19 14:52:22 +08:00
blackjok3r 1444ed4e2d add print of MoMoM data each time it is called. 2018-09-19 14:51:41 +08:00
blackjok3r 3eef88c755 Merge branch 'master' of https://github.com/StakedChain/komodo
ok
2018-09-19 13:47:59 +08:00
blackjok3r 876a6e0f9b Merge branch 'dev' of https://github.com/jl777/komodo into jl777-dev
fix merge conflict
2018-09-19 13:46:01 +08:00
blackjok3rtt c0128ed414 fix issue where if there are not two notarisations the MoMoM is indeterninate 2018-09-15 14:17:18 +08:00
Scott Sadler 9325760595 fix for TXSCL data leak 2018-09-06 04:18:44 -03:00
Scott Sadler 538de2ee49 multiple authorities 2018-09-05 00:19:12 -03:00
Scott Sadler cbb1422656 fix for TXSCL data leak 2018-09-04 17:12:04 -03:00
Scott Sadler 0f4a3ceaa9 ac_cc under 1000 is not fungible 2018-07-26 16:06:01 -03:00
Scott Sadler 87d08c5a45 some comments 2018-06-19 20:39:04 -03:00