Repository navigation
feat(platform)!: token pool transitions paid from the credit pool bind their fee bundle (PV15) - #5969
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
✅ Final review complete — no blockers (commit 742de35) · triage: critical |
|
📖 Book Preview built successfully. Download the preview from the workflow artifacts. Updated at 2026-11-18T03:46:54.588Z |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The PV15 binding change is correctly version-gated and the token/fee preimages are consistent. However, the new verifier computes the fee bundle commitment once to bind the token bundle and then computes it again while verifying the fee bundle; this adds unpriced consensus-path CPU work beyond the existing shielded fee formula. CI shows Rust and wasm checks passing, with JS, Swift, Docker, and hygiene checks still pending and no failed code checks reported.
🔴 1 blocking | 💬 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); reviewer 4: gpt-6.1-sol (agent: phase2-reviewer, role: platform-versioning); reviewer 5: gpt-6.1-sol (agent: phase2-reviewer, role: rust-quality); reviewer 6: gpt-6.1-sol (agent: phase2-reviewer, role: security-auditor); reviewer 7: muse-spark-1.3-contributor (agent: phase1-reviewer, role: rust-quality); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
criticalbygpt-6.1-sol(effort low) — This is a large, intricate change to consensus-critical cryptographic signatures and proof validation, including protocol-version-gated token/fee bundle binding in rs-dpp and rs-drive-abci. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort xhigh); agentphase1-reviewer,muse-spark-1.3-contributor— rust-quality (completed, effort xhigh); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(antigravity quota lookup failed),glm-5.3-flash(not used above high effort; tier asks max) - Single stage: Phase 1 and Phase 2 reviewed this head side by side, with no blocker gate between them (triage tier)
- Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort xhigh); agentphase2-reviewer,gpt-6.1-sol— architecture-layering (completed, effort xhigh); agentphase2-reviewer,gpt-6.1-sol— platform-versioning (completed, effort xhigh); agentphase2-reviewer,gpt-6.1-sol— rust-quality (completed, effort xhigh); agentphase2-reviewer,gpt-6.1-sol— security-auditor (completed, effort xhigh); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.
In `packages/rs-drive-abci/src/execution/validation/state_transition/processor/traits/shielded_proof.rs`:
- [BLOCKING] packages/rs-drive-abci/src/execution/validation/state_transition/processor/traits/shielded_proof.rs:1981-1995: Account for or eliminate the extra fee-bundle commitment hash
The verifier computes `fee_bundle.commitment()` at line 1981 so the commitment can be added to the token bundle sighash. It then calls `verify_bundle(&fee_bundle, ...)` at line 1995, whose implementation computes `bundle.commitment()` again before constructing the fee bundle sighash. Consequently, every PV15 type 26/27/28 transition performs a second full Orchard commitment pass over the fee actions, whereas the prior verifier computed that commitment only once. The existing `compute_token_pool_paid_shielded_fee` formula charges the two bundle verification costs and per-action work, but neither the `PaidFromShieldedPool` event nor another cost operation accounts for this additional hashing. This creates a consensus-path cost/fee mismatch and an underpriced verification workload. Pass the already computed commitment into a verification helper, or add a protocol-versioned fee/cost component for the extra hash.
In `packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/batch/tests/token/shielded/token_pool_paid_fee_binding.rs`:
- [NITPICK] packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/batch/tests/token/shielded/token_pool_paid_fee_binding.rs:266-274: Use the platform's active version in the nullifier test helper
`credit_nullifier_is_spent` accepts a platform whose state can be at a protocol version different from `PlatformVersion::latest()`, but it always performs `has_nullifier` with the latest version. The helper's callers currently use latest-version platforms, so the behavior is identical today, but the surrounding shielded test helpers were migrated to `current_platform_version(platform)` specifically for protocol-boundary tests. Use the active platform version here as well so a future PV14 or other historical-version caller cannot query the GroveDB state with the wrong version.
|
Your move: thepastaclaw requested changes on this head; dismiss the review or push a fix; thepastaclaw left review threads unresolved; resolve them. |
…d their fee bundle (PV15) From protocol version 15 the token bundle of TokenShieldedTransferWithShieldedFee, TokenUnshieldWithShieldedFee and TokenPurchaseFromShieldedPool binds its fee bundle's Orchard commitment into its sighash, after its own layout. The fee bundle already binds a digest of the token bundle's actions, so neither bundle can be paired with a bundle of different effects, as the transitions already document. - rs-platform-version: dpp.methods.token_pool_paid_fee_binding, None in DPP_METHOD_VERSIONS_V1 to V3 and Some(0) in the new DPP_METHOD_VERSIONS_V4, which only PV15 selects; DRIVE_ABCI_VALIDATION_VERSIONS_V11 (PV15 only) selects validate_shielded_proof 2. - rs-dpp: token_pool_paid_fee_binding_extra_sighash_data and its frozen v0 layout. The three builders build the fee bundle before the token bundle is signed, take its commitment, sign the token bundle over the bound preimage, then sign the fee bundle over the token bundle's signed actions. One path for every protocol version: at PV14 the binding returns the shipped layout. spend_builder is extracted from build_spend_bundle_with without a behaviour change. - rs-drive-abci: validate_shielded_proof v2 is v1 with the three arms changed: the fee bundle is reconstructed first and the token bundle is verified over its preimage followed by the fee bundle's commitment, a constant of v2 (it calls the frozen v0 binding, so it never verifies the unbound preimage). v1 is unchanged. reconstruct_and_verify_bundle is split into reconstruct_bundle and verify_bundle and recomposed: same checks, order and messages. PV14 keeps validate_shielded_proof 1, DPP_METHOD_VERSIONS_V3 and the unbound preimage. Tests (red on 5b73d83 with only the tests added, green with the change): ✖ → ✔ should_refuse_a_token_shielded_transfer_bundle_paired_with_another_fee_bundle ✖ → ✔ should_refuse_a_token_unshield_bundle_paired_with_another_fee_bundle ✖ → ✔ should_refuse_a_token_purchase_bundle_paired_with_another_fee_bundle ✖ → ✔ should_refuse_a_token_bundle_paired_with_a_second_fee_bundle_over_the_same_notes ✖ → ✔ should_verify_each_token_pool_paid_kind_only_under_the_binding_it_was_built_for (it also refuses, at 14 and at latest, a fee bundle that does not reconstruct or whose binding signature fails) ✖ → ✔ should_refuse_a_token_payment_built_for_protocol_version_14_on_the_first_block_after_it ✖ → ✔ should_refuse_a_fee_bound_token_payment_at_14_and_execute_the_same_bytes_after_it ✔ → ✔ the three test_a_purchase_from_shielded_pool_* copy tests, now pinned at protocol version 14, where their assertions still hold unchanged New: should_append_the_fee_bundle_commitment_to_the_token_layouts_from_protocol_version_15, should_refuse_an_unknown_fee_binding_version, token_pool_paid_fee_binding_should_agree_with_the_selected_verifier_at_every_protocol_version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…as executed or superseded The token bundle of TokenShieldedTransferWithShieldedFee, TokenUnshieldWithShieldedFee and TokenPurchaseFromShieldedPool carries the transition's effect; the credit pool bundle pays its fee. When every nullifier of the token bundle is proven spent and a fee nullifier is still free, the outcome judge now answers ExecutedOrSuperseded instead of CannotExecute(InputUsed), with consumed_by_height taken from the token bundle's reads. The rule is a guard on the Partial case only, so every other answer and consumed_by_height keep their meaning. Docs: the outcome guidance says how to retry these transitions under protocol version 14, where the token bundle does not commit to its fee bundle, and that an admission refusal is not a reason to pay again with other notes; the three transitions' doc comments, the book's token shielded pools page, validate_token_pool_outputs and the wasm-dpp2 computePlatformSighash doc describe the protocol version 15 binding. Tests (red on 5b73d83 with only the tests added, green with the change): ✖ → ✔ should_report_a_spent_token_bundle_as_executed_or_superseded_whatever_the_fee_bundle_shows ✖ → ✔ should_report_a_purchase_whose_token_bundle_landed_in_another_purchase_as_executed_or_superseded (renamed from ..._as_input_used, whose expectation it reverses) New judge unit tests: the guard fires only on a partial spend, takes its height from the token bundle's reads, leaves the all-consumed answer at the lowest height of any bundle, and does not fire for a partly spent token bundle, a spent fee bundle beside a free token bundle, or a spend with no token bundle. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r its one commitment validate_shielded_proof v2 computed the fee bundle's Orchard commitment for the token bundle's preimage and then again inside verify_bundle for the fee bundle's own sighash. verify_bundle now takes the sighash its caller computed: reconstruct_and_verify_bundle computes the commitment and the sighash as before, and v2 uses its one fee commitment for both, so each bundle's commitment is computed once, as under v1. What is verified is unchanged. The token pool fee binding tests' credit nullifier helper reads the platform's protocol version, like the other shielded test helpers. No new test: no behaviour changes (the type 26/27/28 binding, refusal and boundary tests and the whole shielded suite pass unchanged). Co-Authored-By: Claude Opus 5.5 <[email protected]>
92f6638 to
742de35
Compare
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
thepastaclaw
left a comment
There was a problem hiding this comment.
Re-review — Final validation — Phase 1 + Phase 2
The current head correctly confines the fee-bundle binding to protocol version 15, preserves the earlier verifier generations, and reuses the reconstructed fee commitment for both sighashes. The SDK outcome logic consistently treats a fully spent token bundle as settled for the affected transitions, and no new in-scope defects were identified. The Rust workspace and test-suite checks were still running; the unrelated Dashmate local-network E2E check was failing, while the other completed relevant checks passed.
🔴 0 blocking | 🟡 0 suggestion(s) | 💬 0 nitpick(s)
Review provenance
Source: reviewer 1: gpt-6.2-astra (agent: phase2-reviewer, role: general); reviewer 2: gpt-6.2-astra (agent: phase2-reviewer, role: architecture-layering); reviewer 3: gpt-6.2-astra (agent: phase2-reviewer, role: platform-versioning); reviewer 4: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 5: gpt-6.2-astra (agent: phase2-reviewer, role: rust-quality); reviewer 6: gpt-6.2-astra (agent: phase2-reviewer, role: security-auditor); reviewer 7: muse-spark-1.3-contributor (agent: phase1-reviewer, role: rust-quality); reviewer 8: gpt-6.2-astra (agent: phase2-reviewer, role: general); reviewer 9: gpt-6.2-astra (agent: phase2-reviewer, role: architecture-layering); reviewer 10: gpt-6.2-astra (agent: phase2-reviewer, role: platform-versioning); reviewer 11: gpt-6.2-astra (agent: phase2-reviewer, role: rust-quality); reviewer 12: gpt-6.2-astra (agent: phase2-reviewer, role: security-auditor); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)
- Triage:
criticalbygpt-6.2-sol(effort low) — This is a large, intricate change that modifies consensus validation and cryptographic sighash/signature binding for token-pool transitions, directly affecting funds movement and proof soundness in rs-drive-abci and rs-dpp. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort xhigh); agentphase1-reviewer,muse-spark-1.3-contributor— rust-quality (completed, effort xhigh); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(antigravity quota lookup failed),glm-5.3-flash(not used above high effort; tier asks max) - Single stage: Phase 1 and Phase 2 reviewed this head side by side, with no blocker gate between them (triage tier)
- Fresh final gate: an independent Phase-2 review ran after iterative findings were reconciled
- Fresh verifier:
gpt-6.2-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.2-astra— general (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— architecture-layering (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— platform-versioning (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— rust-quality (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— security-auditor (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— general (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— architecture-layering (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— platform-versioning (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— rust-quality (completed, effort high); agentphase2-reviewer,gpt-6.2-astra— security-auditor (completed, effort high); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify the current code and confirm that no unresolved issues remain.
No unresolved findings remain from the prior review on this head.
|
Bots are done — your move: post |
…t's values alone (PV15) The exemption a contested create got from chooseFirst required validWhen to read at least the contested index properties. A commitment to the contest's values and more (an answer beside a name) then had its order skipped, though that order decides something the contest does not. commits_to_its_contest_values (formerly contest_takes_every_competitor) now requires validWhen, and so the findBy function filling among, to read exactly the contested index properties, beside a contest decided by its index values. A valid competitor then committed to exactly the create's index values, so the commitments the order would rank are the contest's would-be contenders. Any other chooseFirst keeps its scan. The rule reads only the contract's declarations. DPNS v3 commits to exactly its contested label and parent and keeps the exemption. Docs: v15 note 48 (renumbered after the rebase; #5969 holds 47) and notes 3 and 11, the V11 validation notes, the book's chooseFirst and contest pages (the earliest contender within a block is the lower document id; the per-name cap keeps rivals out of a contest), and the LookupChooseFirst and wasm docs. Test would have caught this in CI: ✖ before fix, ✔ after: - commit_reveal_lookup::should_hold_a_contested_reveal_to_the_order_where_its_commitment_holds_more_than_the_contested_values (accepted at 65010fe; 40149 after, at 14 and 15) Guards: should_hold_a_contested_reveal_to_the_order_where_its_contest_reads_outside_its_index fails if the rule drops the decided-by-index-values condition (checked by mutation); dpns_v3::should_refuse_a_reveal_in_the_block_of_its_preorder now also runs on a contested name, pinning minimumAgeBlocks there; the label-only commitment test now runs at 14 and 15. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t's values alone (PV15) The exemption a contested create got from chooseFirst required validWhen to read at least the contested index properties. A commitment to the contest's values and more (an answer beside a name) then had its order skipped, though that order decides something the contest does not. commits_to_its_contest_values (formerly contest_takes_every_competitor) now requires validWhen, and so the findBy function filling among, to read exactly the contested index properties, beside a contest decided by its index values. A valid competitor then committed to exactly the create's index values, so the commitments the order would rank are the contest's would-be contenders. Any other chooseFirst keeps its scan. The rule reads only the contract's declarations. DPNS v3 commits to exactly its contested label and parent and keeps the exemption. Docs: v15 note 48 (renumbered after the rebase; #5969 holds 47) and notes 3 and 11, the V11 validation notes, the book's chooseFirst and contest pages (the earliest contender within a block is the lower document id; the per-name cap keeps rivals out of a contest), and the LookupChooseFirst and wasm docs. Test would have caught this in CI: ✖ before fix, ✔ after: - commit_reveal_lookup::should_hold_a_contested_reveal_to_the_order_where_its_commitment_holds_more_than_the_contested_values (accepted at 65010fe; 40149 after, at 14 and 15) Guards: should_hold_a_contested_reveal_to_the_order_where_its_contest_reads_outside_its_index fails if the rule drops the decided-by-index-values condition (checked by mutation); dpns_v3::should_refuse_a_reveal_in_the_block_of_its_preorder now also runs on a contested name, pinning minimumAgeBlocks there; the label-only commitment test now runs at 14 and 15. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Issue being fixed or feature implemented
TokenShieldedTransferWithShieldedFee(26),TokenUnshieldWithShieldedFee(27) andTokenPurchaseFromShieldedPool(28) carry a token bundle and a credit pool bundle that pays the fee. Their doc comments say that neither bundle can be paired with another. The fee bundle's sighash binds a digest of the token bundle's actions, but the token bundle's sighash binds only the type, the token and the transparent fields, so only one direction held.From protocol version 15 the token bundle also binds its fee bundle's Orchard commitment, so neither bundle can be paired with a bundle of different effects. Protocol version 14 keeps today's behaviour.
The SDK's outcome judge now reports a 26/27/28 whose token bundle is spent as executed or superseded, whatever its fee bundle shows: the token bundle carries the transition's effect.
What was done?
Consensus (PV15 only)
rs-platform-version: newdpp.methods.token_pool_paid_fee_binding(OptionalFeatureVersion). It isNoneinDPP_METHOD_VERSIONS_V1–V3andSome(0)in the newDPP_METHOD_VERSIONS_V4, which onlyPLATFORM_V15selects.DRIVE_ABCI_VALIDATION_VERSIONS_V11(PV15 only, unreleased) now selectsvalidate_shielded_proof: 2. v15.rs gets note 47.rs-dppsighash:token_pool_paid_fee_binding_extra_sighash_datareturns the kind's layout unchanged atNone, and atSome(0)the layout followed by the fee bundle's commitment (32 bytes; the frozen_v0). The token-bundle preimages at PV15 are:0x1A || token_id || fee_commitment(65 bytes)0x1B || token_id || recipient_id || amount || fee_commitment(105 bytes)0x1C || token_id || token_count || price || fee_commitment(81 bytes)The fee bundle's preimage is unchanged.
rs-dppbuilders: each of the three builders runsprove_and_sign_with_fee_bundle, which:The builders use one path for every protocol version; at PV14 the binding returns the shipped layout.
spend_builderis extracted frombuild_spend_bundle_withwithout a behaviour change.rs-drive-abci:validate_shielded_proof_v2is a copy of v1 with only the three arms changed. Each arm reconstructs the fee bundle first, then verifies the token bundle over its preimage followed by the fee bundle's commitment, then verifies the fee bundle. The binding is a constant of v2: v2 calls the frozen_v0layout, so it never verifies the unbound preimage. v0 and v1 are unchanged. An agreement test tiestoken_pool_paid_fee_binding, which clients read, tovalidate_shielded_proof >= 2at every protocol version.SDK and docs
Sdk::state_transition_outcome: for 26/27/28, a partial spend whose token bundle is entirely spent isExecutedOrSupersededrather thanCannotExecute(InputUsed). This is a guard on thePartialcase only;All,Unordered, the anchor rules andconsumed_by_heightare unchanged.validate_token_pool_outputs, the book's token shielded pools page and the wasm-dpp2computePlatformSighashdoc.Cost
No extra Orchard commitment hash: v2 reconstructs the fee bundle once and computes its commitment once, then uses that one value both in the token bundle's preimage and in the fee bundle's own sighash, so each bundle's commitment is computed once, as under v1. The only added hashing is 32 bytes more in the token bundle's SHA-256 sighash preimage. Still exactly two proof verifications per transition. A token bundle paired with another fee bundle fails verification of the token bundle and is refused unpaid, like any invalid proof today, under the existing CheckTx limiter and the DAPI shielded proof failure budget. Orchard checks signatures before proofs, so it is refused before any Halo 2 work. A malformed fee bundle is refused before any proof verification. The transition's bytes, its fees and its paid/unpaid classification are unchanged. No new DoS surface.
Activation boundary
The first PV15 block runs every transition under v2. A 26/27/28 signed for PV14 and still in a mempool is then refused unpaid, before any write; proposers drop it, and the same notes rebuilt for PV15 execute. A transition built for PV15 is refused by a PV14 node at admission, and the same bytes become valid once PV15 activates. 0 transitions of these types exist on mainnet or testnet today.
In-place changes to shipped generations
reconstruct_and_verify_bundle(every shielded type, PV12+): split intoreconstruct_bundleandverify_bundle(which verifies over a sighash its caller computed) and recomposed under the same signature: it reconstructs, computes the commitment and the sighash, then verifies. It cannot change consensus: the checks, their order and the error messages are the same. The only thing that moved is the call toget_verifying_key(), a cached constant that cannot fail.OsRngis still used only insideBatchValidator, for one bundle per call.DPP_METHOD_VERSIONS_V1–V3: the new field is backfilled withNone, which selects the shipped preimage.DRIVE_ABCI_VALIDATION_VERSIONS_V11andPLATFORM_V15's dpp method table: amended in place. Only PV15 selects them. PV15 is not activated on testnet or mainnet and not released as stable; 5.1.0-dev.1 is a prerelease, so it differs from 5.1.0-dev.1 and needs no migration.spend_builderextraction,prove_and_sign_with_fee_bundle): client side, not consensus. A transition built for protocol version 14 still verifies under v1, asshould_verify_each_token_pool_paid_kind_only_under_the_binding_it_was_built_forpins.validate_shielded_proofv0 and v1: untouched (byte-identical).How Has This Been Tested?
Tests first, on 5b73d83 with only the tests added (red), then with the change (green):
should_refuse_a_token_shielded_transfer_bundle_paired_with_another_fee_bundleshould_refuse_a_token_unshield_bundle_paired_with_another_fee_bundleshould_refuse_a_token_purchase_bundle_paired_with_another_fee_bundleshould_refuse_a_token_bundle_paired_with_a_second_fee_bundle_over_the_same_notesshould_verify_each_token_pool_paid_kind_only_under_the_binding_it_was_built_for(also: a fee bundle that does not reconstruct, or whose binding signature fails, is refused at 14 and at latest)should_refuse_a_token_payment_built_for_protocol_version_14_on_the_first_block_after_itshould_refuse_a_fee_bound_token_payment_at_14_and_execute_the_same_bytes_after_itshould_report_a_spent_token_bundle_as_executed_or_superseded_whatever_the_fee_bundle_shows(SDK)CannotExecute(InputUsed)should_report_a_purchase_whose_token_bundle_landed_in_another_purchase_as_executed_or_superseded(SDK, renamed and flipped)test_a_purchase_from_shielded_pool_*copy tests, pinned at protocol version 14Also added:
should_append_the_fee_bundle_commitment_to_the_token_layouts_from_protocol_version_15andshould_refuse_an_unknown_fee_binding_version(byte layouts through the dispatcher at 14 and at latest);token_pool_paid_fee_binding_should_agree_with_the_selected_verifier_at_every_protocol_version;The test helpers in the token shielded tests module now process and run CheckTx at the platform's own protocol version rather than
PlatformVersion::latest(). That is identical for every existing caller, which all use latest platforms.Commands, all run locally:
cargo test -p dpp --all-features --lib -- shieldedRUST_MIN_STACK=4194304 cargo test -p drive-abci --lib -- shieldcargo test -p platform-versioncargo test -p dash-sdk --features mocks --lib -- transition::outcomecargo clippy -p platform-version -p dpp -p drive-abci -p dash-sdk --all-features --all-targets -- -D warningsrustfmton the changed filescargo check --workspace --all-targetsResults on this branch, rebased on v5.1-dev 4505fc5 (the last two v5.1-dev commits, 9da740b and 18e26d9, were rebased onto afterwards; they change doc comments in the version tables, and the focused tests below were re-run on them):
cargo test -p dpp --all-features --lib -- shielded: 365 passed.cargo test -p dash-sdk --features mocks --lib -- transition::outcome: 65 passed.cargo test -p platform-version: passed.RUST_MIN_STACK=4194304 cargo test -p drive-abci --lib -- shield: 427 passed, 0 failed, 3 ignored (existing benchmarks).cargo check --workspace --all-targets: clean.Not added: a strategy test across a real PV14 → PV15 upgrade. The strategy harness has no operation for these types yet. Instead, the boundary tests run the proposer path (
proposing = true, non-genesis height) on a PV15 candidate state afterperform_events_on_first_block_of_protocol_change, the way the existing PV14 boundary test does.Breaking Changes
Consensus change at protocol version 15 only: a 26/27/28 must be built for the protocol version it is validated at (the builders take
platform_version). Protocol version 14 is unchanged.Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
742de35/self-reviewedWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.Summary by CodeRabbit