Skip to content

build: upgrade rs-tenderdash-abci and Tenderdash image to v1.8.0 - #4661

Merged
lklimek merged 7 commits into
v4.2-devfrom
build/tenderdash-1.8.0-dev.2
Sep 16, 2026
Merged

lklimek merged 7 commits into
v4.2-devfrom
build/tenderdash-1.8.0-dev.2

Conversation

@Claudius-Maginificent

@Claudius-Maginificent Claudius-Maginificent commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Move Platform onto the Tenderdash 1.8.0 release line: run the released dashpay/tenderdash:1.8.0 node image, and build against the matching rs-tenderdash-abci v1.8.0 library, instead of staying on the 1.7 image / v1.5.1 library while 1.8.0 was still pre-release.

What was done?

TL;DR

  • Bumps the default Tenderdash Docker image dashmate configures for Platform nodes from dashpay/tenderdash:1.7 (via intermediate 1.8.0-dev.x pre-releases) to the released dashpay/tenderdash:1.8.0, and re-pins existing node configs to it on their next Dashmate upgrade.
  • Bumps the tenderdash-abci / tenderdash-proto Rust dependency from v1.5.1 to v1.8.0 in rs-drive-abci, rs-drive-proof-verifier, and dapi-grpc.

User story

As a masternode operator running Platform via dashmate, I want my node to run the released Tenderdash 1.8.0 build with a matching rs-tenderdash-abci, so consensus and the ABCI handshake stay in lock-step with the network.

Scenario

Current behavior: A dashmate node (new or already-existing) runs dashpay/tenderdash:1.7, and Drive ABCI is built against rs-tenderdash-abci v1.5.1.
Expected behavior: A newly configured/reset node pulls dashpay/tenderdash:1.8.0, an existing node moves onto it the next time Dashmate migrates its config (no manual docker.image edit needed), and Drive ABCI is built against rs-tenderdash-abci v1.8.0.

Detailed discussion

  1. packages/dashmate/configs/defaults/getBaseConfigFactory.js: default docker.image for Tenderdash → dashpay/tenderdash:1.8.0.
  2. packages/dashmate/configs/getConfigFileMigrationsFactory.js: the re-pin (options.platform.drive.tenderdash.docker.image = base.get('platform.drive.tenderdash.docker.image')) already folded into the existing '4.2.0' migration bucket now carries operators onto 1.8.0 — mirroring what the '4.1.1' migration did for the 1.6 → 1.7 move in build(dashmate): track the floating Tenderdash 1.6 image tag #4410.
  3. packages/rs-drive-abci/Cargo.toml, packages/rs-drive-proof-verifier/Cargo.toml, packages/dapi-grpc/Cargo.toml: tenderdash-abci / tenderdash-proto git tag v1.5.1 → v1.8.0; Cargo.lock refreshed accordingly.
  4. packages/rs-drive-abci/src/abci/handler/finalize_block.rs: rs-tenderdash-abci v1.8.0 raises the ABCI protocol version to 1.4.0 (was 1.3.0) and adds an additive ResponseFinalizeBlock.propose_next_block_immediately field (default false). Populated the response via ..Default::default() as the upstream changelog recommends, so behavior is unchanged. tenderdash_abci::check_version() / ABCI_VERSION are sourced from the crate itself, so no other code needed to change — but this does mean a node must run Tenderdash ≥ 1.8.0 for the info handshake to succeed, which is exactly what part 1/2 above ensure.

Merged the latest v4.2-dev into this branch to pick up upstream's own unrelated rework of finalize_block.rs (perf timers, checkpoint retry/skip logic, data-contract cache promotion) and dependency graph moves (bincode/grovedb-* to workspace deps, rocksdb to crates.io 0.25.0); the only overlap was the tail-end Ok(proto::ResponseFinalizeBlock { .. }) return, resolved by keeping upstream's logic and re-applying the ..Default::default() change on top.

No config-schema changes needed — the docker.image field itself is unchanged in shape.

How Has This Been Tested?

  • cargo check -p dapi-grpc -p drive-proof-verifier -p drive-abci — compiles clean against rs-tenderdash-abci v1.8.0.
  • cargo clippy -p dapi-grpc -p drive-proof-verifier -p drive-abci --all-targets -- -D warnings — clean.
  • cargo test -p drive-abci --lib abci::handler::finalize_block:: abci::handler::info:: — all passing (14 + 2 tests, including the ABCI version-mismatch handshake test and upstream's new checkpoint-retry tests after the merge).
  • cargo fmt --check on the touched crates.
  • yarn workspace dashmate lint — no new errors (pre-existing warnings only, unrelated to this change).
  • Verified dashpay/tenderdash:1.8.0 is published on Docker Hub and v1.8.0 tags exist on both dashpay/tenderdash and dashpay/rs-tenderdash-abci.

Breaking Changes

None for Platform's own API. Operationally, a node on this build requires a Tenderdash node ≥ v1.8.0 (ABCI protocol ^1.4) — the paired dashmate image bump in this same PR ensures that.

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

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Updates
    • Updated the default Tenderdash Docker image to version 1.8.0 for new configurations.
    • Existing configurations migrated to version 4.2.0 now align their Tenderdash image with the current configured default.
  • Compatibility
    • Updated Tenderdash integration components to support version 1.8.0.
    • Improved compatibility of block-finalization responses with the updated Tenderdash version.
    • Upgraded configurations maintain consistent Tenderdash settings without requiring manual image updates.

Tenderdash 1.8.0-dev.2 has passed CI
(https://github.com/dashpay/tenderdash/actions/runs/34609756975).
Point the default dashmate config at this image so Platform tracks
it ahead of the 1.8.0 release.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 2027c31c-da20-42a0-9331-414c91774e99

📥 Commits

Reviewing files that changed from the base of the PR and between 87ca7b2 and 3ffb804.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (6)
  • packages/dapi-grpc/Cargo.toml
  • packages/dashmate/configs/defaults/getBaseConfigFactory.js
  • packages/dashmate/configs/getConfigFileMigrationsFactory.js
  • packages/rs-drive-abci/Cargo.toml
  • packages/rs-drive-abci/src/abci/handler/finalize_block.rs
  • packages/rs-drive-proof-verifier/Cargo.toml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The default Tenderdash image changes to dashpay/tenderdash:1.8.0. The 4.2.0 migration re-pins existing Tenderdash Docker blocks. Rust Tenderdash dependencies change to v1.8.0, and finalize-block responses use default values for remaining fields.

Changes

Tenderdash 1.8.0 update

Layer / File(s) Summary
Image version and migration re-pin
packages/dashmate/configs/defaults/getBaseConfigFactory.js, packages/dashmate/configs/getConfigFileMigrationsFactory.js
The base configuration uses dashpay/tenderdash:1.8.0. The 4.2.0 migration applies this image to configurations with a Tenderdash Docker block.
Rust dependency and response updates
packages/dapi-grpc/Cargo.toml, packages/rs-drive-abci/Cargo.toml, packages/rs-drive-proof-verifier/Cargo.toml, packages/rs-drive-abci/src/abci/handler/finalize_block.rs
The Rust packages use Tenderdash dependencies at v1.8.0. ResponseFinalizeBlock initializes remaining fields with Default::default().

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 3ffb8

The Tenderdash 1.8.0 image and dependency updates are internally consistent, with no identified merge-blocking risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main changes: upgrading the rs-tenderdash-abci dependencies and the Tenderdash Docker image to v1.8.0.
Docstring Coverage ✅ Passed Docstring coverage is 80.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 3 files. (3 skipped: 3 u…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch build/tenderdash-1.8.0-dev.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.

❤️ Share

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

@github-actions github-actions Bot added this to the v4.2.0 milestone Sep 11, 2026
…h image

Fold the Tenderdash image re-pin into the existing 4.2.0 migration
bucket, mirroring the re-pin the 4.1.1 migration did for the 1.6 ->
1.7 move (#4410): without it, only newly created or reset configs
would pick up 1.8.0-dev.2, and operators upgrading Dashmate would
stay pinned to 1.7.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@lklimek
lklimek marked this pull request as ready for review September 11, 2026 15:26
@thepastaclaw

thepastaclaw commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

⚡ Priority review — 2nd in line, starts as soon as a slot frees (commit 70ac8fc)
Estimated review time once started: ~10 min (two-phase automated review; median of recent runs).

@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 2 only (queue backlog)

The default Tenderdash image update is correct for new configurations, but the migration does not update configurations already stamped with the development-cycle format version 4.2.0. Because the current migration target is also 4.2.0, those configurations bypass the migration entirely and remain pinned to dashpay/tenderdash:1.7, contrary to the PR’s stated existing-node upgrade behavior.

🔴 1 blocking

Review provenance

Source: reviewer 1: gpt-6-astra (agent: phase2-reviewer, role: general); final verifier: gpt-6-astra (agent: astra-verifier, role: final-verifier)

  • Triage: low by gpt-6-astra (effort low) — This is a small, well-contained Dashmate configuration and migration update that changes the Tenderdash image tag without affecting consensus, funds, cryptography, or other critical surfaces.
  • Phase 1 reviewers: not run (skipped for throughput: 16 PRs queued, above the 10 limit)
  • Fresh verifier: gpt-6-astra — final-verifier; agent astra-verifier
  • Phase 2 reviewers: gpt-6-astra — general (completed, effort medium); 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/configs/getConfigFileMigrationsFactory.js`:
- [BLOCKING] packages/dashmate/configs/getConfigFileMigrationsFactory.js:1705-1718: Use a new migration key for configs already stamped 4.2.0
  Configurations created or migrated by this development branch are stamped `configFormatVersion: '4.2.0'`, because `getConfigFormatVersion` selects the newest migration key over the package version. On a subsequent upgrade to this head, `migrateConfigFileFactory` computes the target as `4.2.0` and returns immediately when `fromVersion` is already `4.2.0`, so this migration never runs. Such nodes retain `dashpay/tenderdash:1.7`, despite the PR promising that existing nodes move to `dashpay/tenderdash:1.8.0-dev.2` on their next migration. Put the Tenderdash re-pin in a new migration key higher than `4.2.0` and add a regression test starting from an already-stamped `4.2.0` configuration containing the old image.

Comment on lines 1709 to +1718
// development build is stamped above that key and skips it.
delete options.platform?.drive?.tenderdash?.consensus?.unsafeOverride?.commit;

// Move the Tenderdash image onto the tag the base config now pins
// (1.8.0-dev.2), so operators pick it up without waiting for a
// Dashmate release. Mirrors the re-pin the 4.1.1 migration did for
// the 1.6 -> 1.7 move.
if (options.platform?.drive?.tenderdash?.docker) {
options.platform.drive.tenderdash.docker.image = base.get('platform.drive.tenderdash.docker.image');
}

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.

🔴 Blocking: Use a new migration key for configs already stamped 4.2.0

Configurations created or migrated by this development branch are stamped configFormatVersion: '4.2.0', because getConfigFormatVersion selects the newest migration key over the package version. On a subsequent upgrade to this head, migrateConfigFileFactory computes the target as 4.2.0 and returns immediately when fromVersion is already 4.2.0, so this migration never runs. Such nodes retain dashpay/tenderdash:1.7, despite the PR promising that existing nodes move to dashpay/tenderdash:1.8.0-dev.2 on their next migration. Put the Tenderdash re-pin in a new migration key higher than 4.2.0 and add a regression test starting from an already-stamped 4.2.0 configuration containing the old image.

source: gpt-6-astra (phase2-reviewer: general)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reverted the 4.2.1 migration split from this session (70ac8fc) — the re-pin stays in the existing 4.2.0 bucket. No dashmate build in this development cycle has actually shipped a config stamped configFormatVersion: '4.2.0' yet, so the already-stamped-config scenario this flags doesn't apply here; not chasing it further for this PR.

@lklimek
lklimek requested a review from shumkov as a code owner September 15, 2026 09:50
@Claudius-Maginificent Claudius-Maginificent changed the title build(dashmate): update Tenderdash image to 1.8.0-dev.2 build(dashmate): update Tenderdash image to 1.8.0-dev.3 Sep 15, 2026

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

Re-review — Preliminary review — Phase 1 blocker gate

The Tenderdash image bump is correctly applied to the base configuration, but the migration that updates existing configurations is placed in an already-consumed 4.2.0 migration bucket. Configurations stamped 4.2.0 by an earlier development build return before migrations run and remain pinned to the older image.

Validated blockers were found by the Phase-1 review and confirmed by a fresh verifier. Phase 2 is deferred until a fresh same-head revalidation clears the blocker gate.

🔴 1 blocking

1 carried-forward finding(s) already raised on this PR; not re-posting as new inline comments.

Review provenance

Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (agent: phase1-reviewer, role: architecture-layering); final verifier: gpt-6-astra (agent: astra-gate-verifier, role: verifier)

  • Triage: low by gpt-6-astra (effort low) — This is a small, well-contained Dashmate configuration image bump plus an existing-config migration update, with straightforward behavior and targeted tests, and it does not affect a critical surface.
  • Phase 1 reviewers: muse-spark-1.3-contributor — general (completed, effort high); agent phase1-reviewer, muse-spark-1.3-contributor — architecture-layering (completed, effort high); agent phase1-reviewer
  • Phase 1 model: muse-spark-1.3-contributor — not quota-gated; passed over gemini-3.8-flash-high (antigravity below 15% reserve: weekly 11% left, 5h 100% left), glm-5.3-flash (zai below 15% reserve: 5h 0% left, weekly 53% left)
  • Fresh verifier: gpt-6-astra — verifier; agent astra-gate-verifier
  • Phase 2 reviewers: not run (deferred by blocker gate)
🤖 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/configs/getConfigFileMigrationsFactory.js`:
- [BLOCKING] packages/dashmate/configs/getConfigFileMigrationsFactory.js:1705-1718: Use a new migration key for configs already stamped 4.2.0
  (existing thread: https://github.com/dashpay/platform/pull/4661#discussion_r3993135257)
  The Tenderdash re-pin is still inside the existing `4.2.0` migration. `migrateConfigFileFactory` returns immediately when `fromVersion >= targetVersion`, and otherwise only applies migration keys greater than `fromVersion` and up to `targetVersion`. In this release cycle, configurations created or migrated by an earlier development build can already be stamped `4.2.0`; those configurations therefore skip the `4.2.0` migration entirely and remain on `1.8.0-dev.2` (or the previous tag). This contradicts the PR's stated requirement that existing node configurations move to `1.8.0-dev.3` on their next upgrade. Move the Tenderdash re-pin into a new migration key greater than `4.2.0` (while preserving the existing `4.2.0` migration behavior), and add a test starting from a config stamped `4.2.0`.

lklimek and others added 2 commits September 16, 2026 11:11
….8.0

rs-tenderdash-abci v1.8.0 bumps the ABCI protocol version to 1.4.0 and
requires a Tenderdash node >= v1.8.0 during the info handshake
(check_version() now needs ABCI ^1.4), so both must move together.

- Pin tenderdash-abci/tenderdash-proto to tag v1.8.0 in rs-drive-abci,
  rs-drive-proof-verifier and dapi-grpc; refresh Cargo.lock.
- Populate the new additive ResponseFinalizeBlock field via
  ..Default::default() (propose_next_block_immediately defaults to
  false, no behavior change).
- Move dashmate's default/re-pinned Tenderdash image from
  1.8.0-dev.3 to the 1.8.0 release.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…1.8.0-dev.2

# Conflicts:
#	Cargo.lock
#	packages/rs-drive-abci/src/abci/handler/finalize_block.rs
@Claudius-Maginificent Claudius-Maginificent changed the title build(dashmate): update Tenderdash image to 1.8.0-dev.3 build: upgrade rs-tenderdash-abci and Tenderdash image to v1.8.0 Sep 16, 2026
getConfigFormatVersion targets the newest migration key during a
development cycle, not package.json's version. A config already stamped
'4.2.0' by an earlier development build therefore has fromVersion >=
targetVersion and migrateConfigFile returns immediately, so the
Tenderdash re-pin placed inside the '4.2.0' bucket never runs for it and
the node stays on the old image.

Move the re-pin (and its accompanying idempotent unsafeOverride.commit
cleanup) into a new '4.2.1' migration key, one release above, mirroring
how the 4.1.1 migration carried the 1.6 -> 1.7 re-pin forward for the
same reason. Add a regression test starting from a config stamped 4.2.0
with the old image tag.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@lklimek
lklimek merged commit 6a3d96b into v4.2-dev Sep 16, 2026
9 checks passed
@lklimek
lklimek deleted the build/tenderdash-1.8.0-dev.2 branch September 16, 2026 11:49
@codecov

codecov Bot commented Sep 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.90%. Comparing base (e82800b) to head (70ac8fc).
⚠️ Report is 5 commits behind head on v4.2-dev.

Files with missing lines Patch % Lines
...s/rs-drive-abci/src/abci/handler/finalize_block.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           v4.2-dev    #4661      +/-   ##
============================================
- Coverage     79.28%   78.90%   -0.38%     
============================================
  Files          2846     2846              
  Lines        405218   407312    +2094     
============================================
+ Hits         321268   321390     +122     
- Misses        83950    85922    +1972     
Components Coverage Δ
dpp 77.02% <ø> (+0.11%) ⬆️
drive 80.34% <ø> (-0.92%) ⬇️
drive-abci 79.50% <75.00%> (-0.10%) ⬇️
sdk ∅ <ø> (∅)
dapi-client ∅ <ø> (∅)
platform-version ∅ <ø> (∅)
platform-value 86.60% <ø> (ø)
platform-wallet ∅ <ø> (∅)
drive-proof-verifier 30.29% <ø> (-0.59%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

QuantumExplorer added a commit that referenced this pull request Sep 16, 2026
…-process-steps-7f5aef

Tenderdash 1.8.0 and rs-tenderdash-abci 1.8.0 are released and v4.2-dev
already pins them (#4661), so the three tenderdash-abci/tenderdash-proto
pins move from the rs-tenderdash-abci commit to tag v1.8.0 and the
finalize_block handler keeps upstream's perf/checkpoint logic with the
propose_next_block_immediately field set on the response.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants