Registry Mirror
Skip to content

Conversation

@ZocoLini

@ZocoLini ZocoLini commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

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.

PR Hygiene · 8298d41

  • Bots — coderabbitai not yet — /skip-bots proceeds without the ones not yet reported
  • Self-review — post /self-reviewed once the bots are done
  • Within your 5 open PRs
  • Build running
  • Approvals
    • dash-spv (dash-spv/src/sync/masternodes/sync_manager.rs) — QuantumExplorer or xdustinface
    • files with no dedicated owner (dash/src/sml/llmq_type/network.rs) — QuantumExplorer or xdustinface

When every box is checked the PR Hygiene check passes and this can merge.

…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>
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 23 minutes.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: dashpay/rust-dashcore/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: cc1fc184-7174-44b1-b813-e677bc4e7963

📥 Commits

Reviewing files that changed from the base of the PR and between cd1db1f and 8298d41.

📒 Files selected for processing (2)
  • dash-spv/src/sync/masternodes/sync_manager.rs
  • dash/src/sml/llmq_type/network.rs

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Sep 28, 2026
@ZocoLini

Copy link
Copy Markdown
Collaborator Author

@coerabbitai approve

@ZocoLini

Copy link
Copy Markdown
Collaborator Author

@coderabbitai approve

@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Comments resolved and changes approved.

@ZocoLini
ZocoLini merged commit e607384 into dev Sep 28, 2026
36 of 37 checks passed
@ZocoLini
ZocoLini deleted the perf/masternode-skip-retired-quorum-types branch September 28, 2026 17:10
@codecov

codecov Bot commented Sep 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.73%. Comparing base (396a36d) to head (8298d41).
⚠️ Report is 2 commits behind head on dev.

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     
Flag Coverage Δ
core 79.09% <100.00%> (+<0.01%) ⬆️
ffi 51.69% <ø> (-1.30%) ⬇️
rpc 20.00% <ø> (ø)
spv 92.38% <100.00%> (+0.07%) ⬆️
wallet 80.22% <ø> (ø)
Files with missing lines Coverage Δ
dash-spv/src/sync/masternodes/sync_manager.rs 90.95% <100.00%> (+1.29%) ⬆️
dash/src/sml/llmq_type/network.rs 76.85% <100.00%> (+1.36%) ⬆️

... and 22 files with indirect coverage changes

QuantumExplorer added a commit that referenced this pull request Sep 28, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-bots Waiting for the review bots to report on this head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant