Conversation
|
🕓 Queued for automated review — 5th in line, estimated start in ~1.4 h (commit 1be3ac2)
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review. WalkthroughThe V24 version-bits deployment bit changes from 12 to 13 in the mainnet, testnet, devnet, and regtest chain parameter constructors. The test setup updates the expected block hash for the height-494 checkpoint. Estimated code review effort: 2 (Simple) | ~8 minutes Merge Risk: ⚪ Minimal · up to V24 now signals on bit 13 across all four networks. No concrete blocking issue was established; confirm the updated height-494 checkpoint in the available test environment. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bit 12 already has mined MNHF signals on mainnet and testnet from before V24 had a start time. v23 nodes still count those signals as live, so any later bit-12 signal is rejected by them as a duplicate, and the old signals stay valid for V24 itself. Bit 13 has never been used by an EHF deployment. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
9e34850 to
1be3ac2
Compare
…endency, sync params with Dash Core in preparation for v24 (#83) * [57a2802] sdk%doc: clean up comments in `dash-params` and `dash-primitives` (Kittywhiskers Van Gogh) * [8a4f29f] params%refac: move network parameters into a `params` module (Kittywhiskers Van Gogh) * [0b09299] params%refac: split chain parameter types per module (Kittywhiskers Van Gogh) * [94d639b] params%refac!: describe genesis blocks with `GenesisParams` (Kittywhiskers Van Gogh) * [b5ec09a] sdk%refac!: invert `dash-params` and `dash-primitives` dependency (Kittywhiskers Van Gogh) * [0756e42] sdk%refac!: invert `dash-params` and `dash-script` dependency (Kittywhiskers Van Gogh) * [5d6e8d4] sdk%lint(codeql): apply codec and ordering policies to `dash-params` (Kittywhiskers Van Gogh) * [aa762a6] params%fix: move v24 deployment to version bit 13 per dashpay/dash#7739 (Kittywhiskers Van Gogh) * [f73b54b] params%fix: schedule the v24 deployment on testnet per dashpay/dash#7725 (Kittywhiskers Van Gogh) * [de29aee] params%feat!: add the `evo_shares` deployment per dashpay/dash#7807 (Kittywhiskers Van Gogh) * [8108fb7] params%fix!: drop per-chain `require_standard` per dashpay/dash#7710 (Kittywhiskers Van Gogh) * [93e6c34] params%feat!: add the bech32m HRP to `AddrParams` per dashpay/dash#7285 (Kittywhiskers Van Gogh) * [ce22bf5] params%fix(llmq)!: add the `LlmqNone` quorum type (Kittywhiskers Van Gogh) * [482a397] params%feat(llmq): add size, DKG and signing parameters per LLMQ type (Kittywhiskers Van Gogh) * [d3c65c4] params%feat: sync params with dashpay/dash#7379 (Kittywhiskers Van Gogh) Description: ````` ## Motivation The coupling between `dash-params` and `dash-{primitives,script}` proved to be expensive, namely by * Creating circular dependencies that had to be worked around by snaking through parameters using `__private` * Coupling an otherwise trivial crate (primarily holding fixed/infrequently updated values) to high-churn crates * And tying those values to data structures that downstream consumers may not share This pull request attempts to dissolve these differences while syncing them with new parameter updates in preparation for Dash Core v24. ## Breaking Changes Affecting `dash-params`: ### Changed - `ChainParams::genesis`, storing the new `GenesisParams` descriptor. - `AddrParams::bech32_hrp`, the human-readable part of DIP-18 Platform addresses. Struct literals must set it. - `LlmqType` gains `LlmqNone` for code `0xff`. The code previously decoded to `LlmqType::Unknown(255)`, exhaustive matches must handle the new variant. ### Removed - `Network::genesis()`. Build the block with `Block::from(&network.chain().genesis)` from `dash-primitives`. - `ChainParams::require_standard`. - Dependency on `dash-primitives` and `dash-script`, now becoming dependents for them. The `portable` feature has been dropped as a result of this inversion. Affecting `dash-primitives`: ### Removed - `LlmqType`, superseded by `dash_params::LlmqType`. Affecting `dash-script`: ### Removed - `AddrParams`, superseded by `dash_params::AddrParams`. ## How Has This Been Tested? ``` just test lint ``` ## Checklist - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have added or updated relevant unit/integration/functional tests - [ ] I have made corresponding changes to the documentation - [x] I did not use agentic assistance (i.e. LLMs, AI) except as [disclosed](#agent-disclosure) and can answer questions, comments and concerns without said assistance. I assume authorship of the code submitted. - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ### Agent disclosure Code generated with Claude Code using Opus 5.5, medium effort. Reviewed with Codex using GPT-6.1-Sol, medium effort as adversarial review and Claude Code using Fable 5.1, medium effort. `````
Issue being fixed or feature implemented
DEPLOYMENT_V24uses version bit 12, and bit 12 already has MNHF (EHF) signals mined on both public networks, left over from before V24 had a start time:d6220b5d9ca0318f24befcf0e6a748bb84836bd79efbdcf165867da638292220in block 13497800a7a4516cc16cd9bc9b956aa793b82cf4a4fb353b325bb6ab29dc3534f95ac7ain block 2400222This causes two problems:
("mnhf", bit), andCheckMNHFTxdoes not check how recent the signing quorum is. The tx has no inputs or outputs, so no duplicate check catches a rebroadcast. OncenStartTimepasses, anyone can rebroadcast the old bit-12 tx. V24 then moves to STARTED on miner signalling alone, without a new masternode vote.NEVER_ACTIVE(-2). ItsGetSignalsStagetherefore never expires the old signals, andProcessBlockrejects any new bit-12 signal withbad-mnhf-duplicate. That includes a legitimate one. So the first bit-12 signal mined after this release splits v23 off, and with (1) an outsider can choose when that happens.Testnet V24 signalling starts at
nStartTime1790208000 (2026-09-24).What was done?
Moved
DEPLOYMENT_V24from bit 12 to bit 13 on all four networks, and updated the one unit-test checkpoint hash that depends on it. No EHF deployment has ever used bit 13, so no earlier signal exists to replay. v23 treats a bit it doesn't know as a valid activation and has no duplicate recorded for it, so v23 nodes keep following the chain through the V24 signal.This PR deliberately changes only the bit. Two related issues are left for follow-ups:
IsValidMNActivationfalls through to the "unknown bit" path for a known bit outside its time window.How Has This Been Tested?
One unit-test fixture,
TestChainV24SignalBeforeV19Setup, mines blocks that signal V24 through miner version bits (-vbparams=v24:...:0). Changing the bit changes those blocks'nVersion, so the expected tip hash for height 494 insrc/test/util/setup_common.cppis updated here. The fulltest_dashsuite passes locally on macOS arm64. No functional tests were run.The replay described above was reproduced earlier on regtest with a throwaway functional test, using the
testdummydeployment:nStartTimemoved forward;started;bad-mnhf-duplicate.Breaking Changes
Miners and masternodes must signal V24 on bit 13 instead of bit 12. V24 has not activated on any public network, so no existing deployment state is affected.
Checklist:
🤖 Generated with Claude Code