Conversation
…ypes After every QRInfo the masternode manager asks for the list at the work block of each non-rotating quorum in the newest list, to validate it. On mainnet that includes the last 24 LLMQ_50_60 quorums. Dash Core retires that type once DIP24 quorums take over InstantSend (`DIP0024QuorumsHeight`, 1738698), but keeps its last mined quorums in the list, so they sit there for good: mined at 1738128 to 1738680, about 800 000 blocks below the tip. Each of their work-block lists was requested from scratch, a full list of about 700 KB, so a mainnet sync downloaded and stored 17 of the 19 MB in `masternodes/` to validate quorums nothing uses: InstantSend verifies against LLMQ_60_75 cycles, ChainLocks use LLMQ_400_60 and Platform LLMQ_100_67. `should_skip_quorum_type` now retires LLMQ_50_60 on mainnet from that height, matching Core's `IsQuorumTypeEnabled`; testnet keeps it for ChainLocks. The masternode manager leaves out the types it skips at the tip when it picks the work-block lists to request, which also applies the Platform activation height that was already there. The quorums stay in the list, since Core serves them and the CbTx commits to them. Observed on a mainnet sync from scratch: no list below 2543032 was requested, `masternodes/` held 26 messages and 2.4 MB instead of 50 and 19 MB, the rotation cycle verified 32/32 and ChainLocks validated. Tests: LLMQ_50_60 is skipped on mainnet from 1738698 but not below, and never on testnet. Verified: fmt, clippy --workspace --all-features --all-targets -D warnings, cargo doc -D warnings, dashcore 590 (default) / 628 (all features), dash-spv 582 + dashd_masternode 10 + dashd_sync 32, dash-spv-ffi 49 + dashd_sync 7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 23 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: dashpay/rust-dashcore/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
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 |
|
@coerabbitai approve |
|
@coderabbitai approve |
✅ Action performedComments resolved and changes approved. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #1080 +/- ##
==========================================
- Coverage 77.87% 77.73% -0.15%
==========================================
Files 317 317
Lines 81214 81263 +49
==========================================
- Hits 63246 63170 -76
- Misses 17968 18093 +125
|
…nlistdiff-coinbase Brings in #1056, #1076, #1079 and #1080. Conflicts: - dash-spv/src/sync/masternodes/sync_manager.rs: the mnlistdiff handler keeps the coinbase proof check before the engine is touched and calls `apply_diff` with #1076's signature. The engine guard lives inside the proven arm, so dev's explicit `drop(engine)` goes. - dash/src/sml/masternode_list_engine/helpers.rs: the shared-map status test registers its quorum in `quorum_statuses` (#1076) and applies diffs whose coinbase commits to that quorum (#1077). - dash/src/sml/masternode_list_engine/mod.rs: the 2240504 fixture loader restores the older captures and calls `apply_diff` with #1076's signature. Beyond the textual conflicts: - #1077's tests call `apply_diff` and `feed_qr_info` with #1076's signatures. - #1076's `applying_a_diff_verifies_the_newest_lists_quorums` and #1079's `a_diff_is_stored_only_until_the_sync_reaches_the_tip` build diffs that now have to match their coinbase: the first applies a diff whose coinbase commits to the quorum it carries over, the second stores a header whose merkle root proves the diff's coinbase. - `reverse_platform_node_ids` uses #1056's `EddsaPkHash` API. Bincode still persists the id in canonical order, so the older captures need the same restore and all 59 fixture diffs still match their coinbase. - The engine docs say where the root check runs now that the engine verifies quorums itself: inside `MasternodeList::apply_diff` and the full-diff conversion, before a list is stored or its quorums enter `quorum_statuses`, for `apply_diff` and every diff of `feed_qr_info` alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After every QRInfo the masternode manager asks for the list at the work block of each non-rotating quorum in the newest list, to validate it. On mainnet that includes the last 24 LLMQ_50_60 quorums. Dash Core retires that type once DIP24 quorums take over InstantSend (
DIP0024QuorumsHeight, 1738698), but keeps its last mined quorums in the list, so they sit there for good: mined at 1738128 to 1738680, about 800 000 blocks below the tip. Each of their work-block lists was requested from scratch, a full list of about 700 KB, so a mainnet sync downloaded and stored 17 of the 19 MB inmasternodes/to validate quorums nothing uses: InstantSend verifies against LLMQ_60_75 cycles, ChainLocks use LLMQ_400_60 and Platform LLMQ_100_67.should_skip_quorum_typenow retires LLMQ_50_60 on mainnet from that height, matching Core'sIsQuorumTypeEnabled; testnet keeps it for ChainLocks. The masternode manager leaves out the types it skips at the tip when it picks the work-block lists to request, which also applies the Platform activation height that was already there. The quorums stay in the list, since Core serves them and the CbTx commits to them.Observed on a mainnet sync from scratch: no list below 2543032 was requested,
masternodes/held 26 messages and 2.4 MB instead of 50 and 19 MB, the rotation cycle verified 32/32 and ChainLocks validated.PR Hygiene ·
8298d41/skip-botsproceeds without the ones not yet reported/self-reviewedonce the bots are donedash-spv(dash-spv/src/sync/masternodes/sync_manager.rs) — QuantumExplorer or xdustinfacedash/src/sml/llmq_type/network.rs) — QuantumExplorer or xdustinfaceWhen every box is checked the
PR Hygienecheck passes and this can merge.