Skip to content

fix(dashmate): run Dash Core v24 by default - #5827

Merged
QuantumExplorer merged 4 commits into
v5.0-devfrom
fix/dashmate-default-core-v24
Nov 10, 2026
Merged

QuantumExplorer merged 4 commits into
v5.0-devfrom
fix/dashmate-default-core-v24

Conversation

@PastaPastaPasta

@PastaPastaPasta PastaPastaPasta commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

Dashmate 5.0.3 still runs dashpay/dashd:23. Once Core's V24 deployment activates, Core v23 rejects the network's blocks, so nodes on the default image fall off the chain. Today operators have to override the image themselves.

What was done?

  • New configs use dashpay/dashd:24.
  • A 5.0.4 config migration moves mainnet and testnet configs, and the local preset, from the image releases have stored since 3.0.1 (exactly dashpay/dashd:23) to dashpay/dashd:24.
  • Any other image is left exactly as the operator set it. That covers dashpay/dashd:24.0.0, 23.1.10, latest, digest pins, docker.io/… and private registries.
  • Existing local network nodes and devnet nodes stay on v23. Core v24 drops the sporks a v23 node stored and learns them only from v24 peers. A regtest/devnet node moved alone runs without ChainLocks, InstantSend or DKG, and a whole network moved together has to sign its sporks again. Mainnet hard-codes its sporks.
  • setup local gives a node it adds to an existing local network the Core image of the nodes already there, not the v24 preset, so one network never mixes v23 and v24.
  • docs/config/core.md lists the new default. docs/update.md explains how to move a local network or devnet to v24: all nodes at once, then re-sign sporks; or group reset --hard plus setup local.

What operators see

After installing the release, the first dashmate command migrates the config. Then:

dashmate update            # pulls dashpay/dashd:24
dashmate restart --safe    # waits out a DKG window before stopping
dashmate status core       # Version 24.0.0

On 5.0.3, the interim workaround is still:

dashmate stop --safe
dashmate config set core.docker.image dashpay/dashd:24.0.0
dashmate update
dashmate start

A node that already did this keeps its 24.0.0 pin after this release; dashmate config set core.docker.image dashpay/dashd:24 returns it to the floating tag.

How Has This Been Tested?

  • New coreImageMigration.spec.js:
    • mainnet, testnet, base and the local preset move from :23 to :24;
    • local group and devnet nodes stay on :23;
    • 11 operator images are preserved;
    • a pre-3.0.1 mainnet config ends on :24;
    • the migration is idempotent;
    • the generated dash.conf for a mainnet/testnet masternode meets Core v24's startup rules: blockfilterindex=basic, peerblockfilters=1, no blocksonly, deprecatedrpc=service, and getspecialtxes/getdeploymentinfo in Drive's RPC whitelist.
  • migrateConfigFileFactory.spec.js fixture updated for the new default; 18/18 pass.
  • New getLocalGroupConfigs.spec.js: a new network gets v24, and nodes added to a v23 network get v23. The test fails with the fix removed.
  • Full dashmate unit suite: 896 passing, 0 failing; lint 0 errors.
  • Runtime: on a dashmate 5.0.3 local network (3 evonodes, Platform 5.0.3, Tenderdash 1.8.2, protocol version 14, arm64), I moved every node from dashd:23 to dashpay/dashd:24.0.0 with the override above. The registry index digest sha256:50133644… is the same one :24 points at today.
  • Not covered:
    • V24 deployment activation itself;
    • Platform state transitions or asset locks under v24;
    • amd64 at runtime;
    • mainnet-scale index build time.

Known limits

  • reset --hard --config <one local_N node> resets that single node to the code default, now v24, while its peers stay on v23. That reset already discarded the node's keys; prefer group reset --hard.
  • Forward merge: if v5.1-dev gains a migration keyed above 5.0.4 before this is merged forward, configs stamped by those dev builds would skip this one.

Breaking Changes

None. Nodes on the stock image move to Core v24 when they restart.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed
  • If I added or changed GroveDB structure, I described it in the area's structure.rs, regenerated grovedb-structure.json, and checked the structure viewer link posted on this pull request

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

PR Hygiene · 0cdec98

  • Bots — thepastaclaw ✓
  • Self-review — post /self-reviewed
  • Reviewer requests paused — your 5 review slots are occupied; this PR is excluded from reviewers' queues. Required approvals still count without a slot.
  • Build green
  • Approvals
    • dashmate (packages/dashmate/configs/defaults/getBaseConfigFactory.js, packages/dashmate/configs/getConfigFileMigrationsFactory.js, packages/dashmate/docs/config/core.md and 6 more) — ktechmidas or shumkov

When every merge requirement is met, the PR Hygiene check passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.

New configs use dashpay/dashd:24. The 5.0.4 migration moves mainnet and
testnet configs, and the local preset, from the stock dashpay/dashd:23
image to dashpay/dashd:24. Any other image is left as the operator set
it. Existing local and devnet nodes stay on v23, because Core v24 drops
the sporks a v23 node stored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@PastaPastaPasta

Copy link
Copy Markdown
Member Author

@shumkov here's the dashmate Core v24 PR, ready for review. It targets v5.0-dev for 5.0.4.

  • New configs: default to dashpay/dashd:24, which today is the same digest as 24.0.0.
  • 5.0.4 migration: moves mainnet/testnet configs (and the local preset) only if they hold exactly the stock dashpay/dashd:23. Custom images, including the 24.0.0 override we recommended for 5.0.3, are kept.
  • Existing local and devnet nodes: stay on v23. Core v24 drops their stored sporks, so moving them would stall those networks.
  • Tests: the new spec and the existing migration spec pass. The full dashmate unit suite passes and lint has 0 errors. The 5.0.3 → dashd:24.0.0 upgrade already ran end-to-end on a local network, with all validators signing identical app hashes.
  • Not tested: V24 activation itself, and state transitions or asset locks under v24.

Open question: do you want a 5.0.4 release cut from v5.0-dev once this lands, or should it wait for other 5.0.x fixes?


🤖 Posted autonomously by Claude on behalf of pasta.

@thepastaclaw

thepastaclaw commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Final review complete — no blockers (commit 0cdec98) · triage: normal

PastaPastaPasta and others added 3 commits November 9, 2026 10:37
A node `setup local` adds to an existing local network now runs the Core
image of the nodes already there, not the v24 preset: Core v24 next to
v23 peers marks them bad in DKG and never asks them for sporks.

The 5.0.4 migration now pins its target image as a literal. The
idempotency test now runs the migration body twice, and docs/update.md
says how to move a local network or devnet to Core v24.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@PastaPastaPasta

Copy link
Copy Markdown
Member Author

One addition since the first comment, after an internal review (head 0cdec989):

  • setup local: a node added to an existing local network now gets that network's Core image, not the v24 preset (src/listr/tasks/setup/local/getLocalGroupConfigs.js). Without it, running setup local with more nodes on an upgraded config would put a v24 node beside v23 peers, which it marks bad in DKG and never asks for sporks.
  • Docs: docs/update.md now says how to move a local network or devnet to v24.

The full dashmate unit suite passes (896, 0 failing) and lint has 0 errors. The known limits are in the description.


🤖 Posted autonomously by Claude on behalf of pasta.

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final validation — Phase 1 + Phase 2

Static verification of head 0cdec98 found no blocking defects and one documentation clarification for devnet operators. Current CI reports passing Dashmate tests, lint, Docker builds, functional tests, and all three Dashmate E2E jobs; three Platform test-suite jobs remain pending. No local builds or tests were run.

💬 1 nitpick(s)

Review provenance

Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: architecture-layering); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: normal by gpt-6.1-sol (effort low) — The change introduces config migration and local-network image inheritance logic with meaningful compatibility cases, but the diff does not itself modify an intricate critical surface.
  • Phase 1 reviewers: muse-spark-1.3-contributor — general (completed, effort xhigh); agent phase1-reviewer
  • Phase 1 model: muse-spark-1.3-contributor — not quota-gated; passed over gemini-3.8-flash-high (antigravity quota lookup failed), glm-5.3-flash (not used above high effort; tier asks max)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort high); agent phase2-reviewer, gpt-6.1-sol — architecture-layering (completed, effort high); agent phase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.

In `packages/dashmate/docs/update.md`:
- [NITPICK] packages/dashmate/docs/update.md:90-95: Explain which config devnet operators should use for spork commands
  This paragraph covers both local networks and devnets, but every command below selects `local_seed`, which is created by local setup rather than being a standard devnet configuration. Add a sentence telling devnet operators to replace `--config=local_seed` with their own node configuration holding the network's spork private key. This makes the recovery instructions usable for both audiences named in the paragraph.

Comment on lines +90 to +95
Local networks and devnets keep their nodes on Core v23, since a Core v24 node discards the sporks a v23 node stored and does not request them from v23 peers. Move such a network as a whole: set `core.docker.image` on every node, restart them, then sign the sporks again on a node holding the spork key (any node of a local network):

```bash
$ dashmate core cli "sporkupdate SPORK_2_INSTANTSEND_ENABLED 0" --config=local_seed
$ dashmate core cli "sporkupdate SPORK_17_QUORUM_DKG_ENABLED 0" --config=local_seed
$ dashmate core cli "sporkupdate SPORK_19_CHAINLOCKS_ENABLED 0" --config=local_seed

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 Nitpick: Explain which config devnet operators should use for spork commands

This paragraph covers both local networks and devnets, but every command below selects local_seed, which is created by local setup rather than being a standard devnet configuration. Add a sentence telling devnet operators to replace --config=local_seed with their own node configuration holding the network's spork private key. This makes the recovery instructions usable for both audiences named in the paragraph.

source: muse-spark-1.3-contributor (phase1-reviewer: general)

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Bots are done — your move: post /self-reviewed.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-self-review Waiting for the author to post /self-reviewed label Nov 9, 2026
@QuantumExplorer
QuantumExplorer merged commit c278fbe into v5.0-dev Nov 10, 2026
24 of 25 checks passed
@QuantumExplorer
QuantumExplorer deleted the fix/dashmate-default-core-v24 branch November 10, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-self-review Waiting for the author to post /self-reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants