Repository navigation
chore: bump rust-dashcore to dev f0ddfd45 - #5951
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
✅ Final review complete — no blockers (commit 9c2c4cd) · triage: critical |
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
Updated after discussion: 1 finding(s) of this review were settled in the inline threads; no blocking finding remains.
- ⏭️ Deferred (maintainer decision): 🔴 Persist masternode collateral locks before enabling this key-wallet revision (tracked in #5890)
The dependency upgrade is largely well-scoped and the ECDSA, account-construction, and diagnostic adaptations preserve existing behavior. However, enabling this key-wallet revision introduces masternode-collateral locks that the platform wallet receives only in memory: the event projection drops locked_outpoints, SQLite persists no lock set, and rehydration never calls lock_outpoint. After restart, collateral can become selectable and be spent, so this funds-safety issue must be addressed before enabling the dependency.
🔴 1 0 blocking
Review provenance
Source: reviewer 1: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: architecture-layering); reviewer 3: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 4: gpt-6.1-sol (agent: phase2-reviewer, role: ffi-engineer); 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) — The cross-cutting dependency and wallet changes affect cryptographic signature handling and key-derived wallet construction, while also changing the Swift/Rust FFI ABI in core wallet state and diagnostics. - 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— ffi-engineer (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 `Cargo.toml`:
- [BLOCKING → DEFERRED by a maintainer; not blocking, do not fix in this PR] Cargo.toml:76: Persist masternode collateral locks before enabling this key-wallet revision
This revision activates key-wallet's new masternode-collateral locking behavior. WalletEvent::TransactionDetected and WalletEvent::BlockProcessed now carry locked_outpoints, but the platform projection matches both events with `..` and does not copy those outpoints into CoreChangeSet. The SQLite writer has no lock-set projection, and rehydration restores UTXOs with is_locked: false without calling ManagedWalletInfo::lock_outpoint. As a result, a wallet can correctly exclude a ProRegTx collateral during the current process, then select and spend that collateral after restart—especially when the sync cursor is already past the registration and no event is emitted again. Carry the lock additions through the changeset and persistence schema, restore them before coin selection, and define the corresponding unlock/reorg behavior with a restart regression test.
thepastaclaw
left a comment
There was a problem hiding this comment.
Re-review after discussion — commit aefba05
Standing review was CHANGES_REQUESTED; this re-review is APPROVE: no blocking findings remain.
Approved: the discussion withdrew or deferred every finding the full review of aefba05e (run 11139) raised, and the approval rests on that review.
No longer blocking:
- Persist masternode collateral locks before enabling this key-wallet revision
Same commit as the standing review; the inline threads above carry the per-finding outcome. This follow-up exists only to correct the verdict.
Review provenance
Source: conversation lane gpt-6.1-sol (agent: conversation); no reviewer or verifier lanes ran for this follow-up
- Verdict moved because the inline discussion withdrew or deferred findings of the standing review of this commit; the code was not re-reviewed
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
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
At the exact head, the Rust workspace test check is red: the upgraded key-wallet now re-emits both the funding and shielded top-up records for the no-change asset lock, while the shared fixture still requires exactly one detail-less record, causing three platform-wallet tests to fail. The diagnostic FFI structs also remove trailing fields without changing their symbols or ABI version, leaving mixed-version consumers vulnerable to stale data or an out-of-bounds write.
🔴 1 blocking
1 finding(s) not shown inline (the lines are not part of this PR's diff)
🔴 Blocking: Update the no-change asset-lock fixture for key-wallet's re-emitted records
packages/rs-platform-wallet/src/changeset/core_bridge.rs:9949-9954
The pinned key-wallet revision includes the reprocessing change that confirms every record belonging to a known transaction. For this wallet-top-up asset lock, the block check now re-emits both the Standard funding record and the AssetLockShieldedAddressTopUp record, but no_change_lock() still asserts that updated_records contains exactly one detail-less record. The Rust workspace CI failure reports this assertion in should_keep_the_funding_accounting_when_a_block_updates_only_the_keys_marker, should_prefer_the_events_slice_over_a_held_slice_of_the_same_account, and should_not_fold_a_held_contact_watch_only_slice, so the projection assertions are never reached. Adapt this shared fixture and its expected record set to the new upstream behavior while retaining the checks that the projected row preserves the funding input accounting.
source: gpt-6.1-sol (phase2-reviewer: general, architecture-layering, ffi-engineer, rust-quality, security-auditor)
Follow-up candidates (optional) (1)
New non-blocking observations on code unchanged since the last full review. No inline threads are opened for them and later reviews do not repeat them: fix forward or track separately if they are worth it.
🟡 Suggestion: Version the breaking diagnostic struct layout change
packages/rs-platform-wallet-ffi/src/core_wallet_types.rs:896-899
CoreWalletStateFFI and AccountMetadataFFI are #[repr(C)] output structs used by the unchanged platform_wallet_core_wallet_state and platform_wallet_account_metadata symbols. Removing monitor_revision changes their layouts from 16 to 8 bytes and from 24 to 16 bytes, while platform_wallet_ffi_version() and the exported symbol names remain unchanged. A new Swift client using the smaller structs with an older native library allows the old library to write the removed field past the caller's allocation; an older client using the new library instead reads a field that is no longer populated. Retain deprecated trailing fields, or introduce versioned structs/functions and enforce an ABI version before allowing mixed artifacts.
source: muse-spark-1.3-contributor (phase1-reviewer: general, rust-quality); gpt-6.1-sol (phase2-reviewer: ffi-engineer)
Review provenance
Source: reviewer 1: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: architecture-layering); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: ffi-engineer); reviewer 4: gpt-6.1-sol (agent: phase2-reviewer, role: rust-quality); reviewer 5: gpt-6.1-sol (agent: phase2-reviewer, role: security-auditor); reviewer 6: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 7: muse-spark-1.3-contributor (agent: phase1-reviewer, role: rust-quality); reviewer 8: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 9: gpt-6.1-sol (agent: phase2-reviewer, role: architecture-layering); reviewer 10: gpt-6.1-sol (agent: phase2-reviewer, role: ffi-engineer); reviewer 11: gpt-6.1-sol (agent: phase2-reviewer, role: rust-quality); reviewer 12: gpt-6.1-sol (agent: phase2-reviewer, role: security-auditor); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
criticalbygpt-6.1-sol(effort low) — This is a broad dependency and wallet/SDK change whose diff directly affects cryptographic signature verification and key/seed handling in packages/rs-dpp/src/util/ecdsa/mod.rs and packages/rs-platform-wallet/src/changeset/core_bridge.rs. - 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
- Code unchanged since the last final review (
aefba05e): 1 new suggestion(s) listed as follow-up candidates, not posted inline - 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— ffi-engineer (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,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— ffi-engineer (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-platform-wallet/src/changeset/core_bridge.rs`:
- [BLOCKING] packages/rs-platform-wallet/src/changeset/core_bridge.rs:9949-9954: Update the no-change asset-lock fixture for key-wallet's re-emitted records
The pinned key-wallet revision includes the reprocessing change that confirms every record belonging to a known transaction. For this wallet-top-up asset lock, the block check now re-emits both the `Standard` funding record and the `AssetLockShieldedAddressTopUp` record, but `no_change_lock()` still asserts that `updated_records` contains exactly one detail-less record. The Rust workspace CI failure reports this assertion in `should_keep_the_funding_accounting_when_a_block_updates_only_the_keys_marker`, `should_prefer_the_events_slice_over_a_held_slice_of_the_same_account`, and `should_not_fold_a_held_contact_watch_only_slice`, so the projection assertions are never reached. Adapt this shared fixture and its expected record set to the new upstream behavior while retaining the checks that the projected row preserves the funding input accounting.
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
Ready for review — files with no dedicated owner: QuantumExplorer or shumkov · |
llbartekll
left a comment
There was a problem hiding this comment.
Reviewed the platform-wallet, platform-wallet-ffi and Swift parts at b1ef060. No blocking findings.
What I checked:
- The
AddressPoolport against key-wallet atf0ddfd45:insert's gap and duplicate-address rules,next_address(None)selecting the same row as the builder'speek_next_path, andreserve/unmark_usedreplacing the hand-written state edits one for one. - Moving the restore into
restore_account_address_poolskeeps the previous account routing and the legacy keyless-row key preservation. Gap fill is bounded, and funding pools fail closed through the issuance floor. monitor_revisionis gone consistently from the FFI structs, the Swift SDK and the example app, with no leftovers in Kotlin/JNI. Upstream never populated the per-address balance, so writing 0 changes nothing for hosts.- The dpp high-S mapping keeps the old error ordering (signature parse, key parse, then S).
I did not review the wallet-storage changes; those have their owner's approval.
Preserve the final PR scope, including merge resolutions, on the updated native stack. Co-Authored-By: Codex <[email protected]>
…wallet Co-Authored-By: Codex <[email protected]>
b1ef060 to
9c2c4cd
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
Nothing blocks: no blocking finding stands on this head.
Not counted: 1 disputed blocking finding(s) left to maintainers.
New on this head: The rebase keeps the rust-dashcore pin at f0ddfd45 and ports the operator and voting key-window queries to key-wallet’s highest_generated() accessor without changing their bounds. Rust workspace, wasm32, Kotlin, Swift, and the main and browser test suites passed; package functional tests were still running, and the dedicated Rust wallet job was skipped.
🟡 1 suggestion(s)
Still open from earlier rounds (1)
- 🟡 Suggestion: Keep the invitation issuance boundary after an over-budget restore —
packages/rs-platform-wallet/src/manager/load.rs:1891-1907(thread)
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: ffi-engineer); reviewer 4: gpt-6.2-astra (agent: phase2-reviewer, role: platform-versioning); 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: general); reviewer 8: muse-spark-1.3-contributor (agent: phase1-reviewer, role: rust-quality); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)
- Triage:
criticalbygpt-6.2-sol(effort low) — Beyond the dependency bump, the diff changes persisted wallet-state migration in legacy_v008.rs and substantially reworks address-pool restoration in address_pool_restore.rs and manager/load.rs. - 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(lane 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.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— ffi-engineer (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 (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-platform-wallet/src/manager/load.rs`:
- [SUGGESTION] packages/rs-platform-wallet/src/manager/load.rs:1891-1907: Keep the invitation issuance boundary after an over-budget restore
(carried; thread: https://github.com/dashpay/platform/pull/5951#discussion_r4658065023)
Not approved: 1 blocking finding(s) are disputed and left to the maintainers.
|
Ready for review — |
Resolves the conflicts with #5536, #6143, #5282, #5923, #5951 and the v5.1-dev merge: - Durable writes use v5.2-dev's `store_and_commit` (#6143) in place of this branch's `commit_durably`, which did the same; the recipient assignment stays counted in the flush ledger. - An abandoned unsent lock's row is removed through `withdraw_durably`. A shielded funding whose removal is durable releases its inputs and hands its funding index back, so a retry rebuilds the same lock. - The identity-recipient migration is renumbered V023 -> V024 after v5.2-dev's V021-V023; schema fingerprints updated. - The SQLite asset-lock funding pool restore uses `AddressPool::insert` and `mark_used` after the rust-dashcore bump made the pool fields private. - `on_dispatch` runs after the generation check, right before the send. - Error codes 81 and 82 kept; the registry lists 83-87 from v5.2-dev. Co-Authored-By: Claude Opus 5.5 <[email protected]>
TL;DR: Move Platform to the current rust-dashcore
dev(0.47.0,f0ddfd45), with no change to how the network validates state.User story
As a Platform developer, I want Platform built against the current rust-dashcore, so that wallet and SPV fixes from the last 52 upstream commits reach Platform's SDKs and wallet.
Scenario
Base flow
Platform pins rust-dashcore by git revision.
Actual behavior
The pin is
6b985d1f(0.46.0), 52 commits behind rust-dashcoredev.Expected behavior
The pin is rust-dashcore
devf0ddfd45. Platform builds and its tests pass, and every protocol version gives the same consensus results as before.Detailed discussion
Builds on #5948, which is merged.
Dependency changes
0.46.0→0.47.0(git revf0ddfd45f78e639e0caed3312515ac72b28ea823), 52 commits after the6b985d1f2a19b2a438392822b505627b989be27apin onv5.2-dev.timeinstead ofchrono(rust-dashcore#1428) and gainsblake3for its storage checksums (rust-dashcore#1407); no Platform-facing type changes. Every other lock entry outside rust-dashcore is unchanged.2.2.2, with itszeroizefeature enabled explicitly.=2.2.0, halo2/Orchard crates, unicode-normalization0.1.25, tokio1.53.3, tonic-web-wasm-client0.9.1and wasm-streams0.5.Upstream behavior Platform picks up
No Platform code had to change for these.
new_addresses(rust-dashcore#1455), the addresses a mempool transaction derived; the field was always empty before the fix.getblocktxnindexes are bounded (rust-dashcore#1451).Code changes
TransactionCheckResult::state_modified, which key-wallet removed as unread (rust-dashcore#1479). Newly locked collaterals still reach the store throughlocked_outpoints.monitor_revisionremoved from the core-wallet and account-metadata snapshots,CoreWalletStateFFI/AccountMetadataFFI, and the Swift diagnostics (upstream fix: proof verification and FromProof refactoring #1359 removed the counter). This removes the field from the public FFI/Swift diagnostics API.CoreWalletStateFFIandAccountMetadataFFIshrink accordingly; native ABI compatibility is not guaranteed (docs: state that native ABI compatibility is not guaranteed #5991).AddressPool(rust-dashcore#1377). Pool fields become accessors,mark_index_usedbecomesmark_used(&Address), and direct pool writes go throughAddressPool::insert.AddressInfolostscript_pubkey,balance,tx_count,total_*,labelandmetadata, so the script now comes from the address. Platform behavior is unchanged except where noted below.AddressPool::insertrefuses a row past the next index to derive.platform_wallet::wallet::address_pool_restorederives the missing indices from the account's key source and then inserts the row, within a budget of 10,000 derivations per pool, so a corrupt store cannot make a load derive without bound. Entries that name the same pool are merged first, so they share one budget. In asset-lock funding pools (invitations, top-ups and other funding keys) and DashPay external (contact payout) pools, rows derived to fill a gap are marked used, including those of a gap fill that stops part way: their row was lost, so whether the key was already handed out is unknown, and it must not be issued again. Funds pools keep derived rows available, because SPV rediscovers their use. SQLite rehydrate shares the derivation primitive,derive_through.ClientWalletStartState::funding_issuance_floorsinto the wallet, and building an asset lock refuses a funding key at or below the floor with an error instead of risking a key already handed out.platform_wallet::manager::restore_account_address_poolsholds the row ordering, gap handling, the used-or-available choice per account, AccountType → account routing and the drop counters; the row-level restore behind it is crate-private.wallet::asset_lock::funding_accountis the one mapping between funding accounts and funding types, shared by the restore, asset-lock reconstruction and the lock builder. The FFI persister only decodes rows and callsrestore_account_address_pools.AddressPool::insertcan refuse a key, sopopulate_platform_node_poolinserts every entry into a copy of the pool and replaces the pool only when every key is accepted.account_address_pools.snapshot_blobrows decodes them through a private copy of the old positionalAddressInfolayout. Without it, wallets upgrading from those versions would fail to migrate.CoreAddressEntryFFI.balanceis always written as 0, because key-wallet keeps no per-address balance; the field stays.CoreAddressEntryFFI.balance; refactor(platform-wallet): one owner for platform-node pool entries #6037 gives platform-node pool entries one owner.util::ecdsa::verify_data_signaturemaps dashcore's new high-S error back toEcdsaError::VerifyFailed, so callers see the same error as before.Consensus analysis (no change at any protocol version)
verify_data_signature. dpp's wrapper already refused high-S signatures at every protocol version; only the error text would have changed, and it is restored. The PV14/PV15 recovery paths (verify_hash_signature) are unchanged.ExtNetInfo::platform_https_portand the transaction builder's fee estimate are not called by drive-abci, drive or dpp.0.1.25, in wiped buffers, pinned by upstream test vectors. Seeds are unchanged.Tests whose state the new API cannot build
key-wallet now keeps pools contiguous, derives
highest_used/highest_generatedfrom the entries and clampsgap_limitto 1..=1000. Storage tests that hand-built other states are rebuilt on consistent pools; the test-onlyMAX_REHYDRATION_GAP_REFILLis 500. Tests of states that no persisted data can produce are removed: theensure_derivedfailure, gap-refill boundary/overflow and empty-pool-script tests. The production guards stay. The no-change asset-lock projection fixture follows rust-dashcore#1399, which re-emits the funding slice together with the keys marker.Testing
cargo clippy -p platform-wallet -p platform-wallet-ffi --all-targets --all-features --locked -- --no-deps -D warningsand targeted formatting checks passed. The platform-node test module is gated oneddsa.cargo clippy --workspace --all-targets -- -D warnings: clean. wasm32 clippy for wasm-sdk, wasm-dpp, wasm-dpp2, wasm-drive-verify and rs-sdk-trusted-context-provider: clean.--all-features2100, dash-sdk + platform-wallet-ffi 1646, drive-abci 4938, all passed.cargo fmt --check: clean.cargo audit: 0 vulnerabilities, with the same 2 allowed warnings as chore: update Rust dependencies #5948.d3857c4751:cargo clippy -p platform-wallet -p platform-wallet-storage -p platform-wallet-ffi -p rs-unified-sdk-ffi -p rs-unified-sdk-jni -p rs-sdk-ffi -p dash-sdk --all-targets --all-features --locked -- --no-deps -D warningsis clean. nextest for platform-wallet, platform-wallet-storage and platform-wallet-ffi (--all-features, withoutwallet::shielded): 3526/3530 passed. The 4 failures aresqlite_identity_key_restore, which fails on hosts with umask 0002 and is fixed in test(platform-wallet-storage): open the identity key restore persisters in a secure tempdir #5980. platform-wallet-ffi and rs-unified-sdk-jni: 693/693 passed.8b45d46c26: clippy for platform-wallet, platform-wallet-storage and platform-wallet-ffi (--all-targets --all-features -D warnings) is clean; nextest for the same packages passed 3535/3535 (withoutwallet::shieldedandsqlite_identity_key_restore). New restore tests were confirmed failing before their fixes.monitorRevision, and Kotlin is unchanged; every use was checked by grep.Follow-ups
AddressPool::generate_up_to(Platform'sderive_throughcan then go), a network check inAddressPool::insert, and used-address restore inrestore_utxos.rehydrate.rs, which key-wallet's invariants now make unreachable (refactor(platform-wallet-storage): drop the unreachable rehydration gap-refill guard #5981).zeroizefeature.Breaking changes
None is consensus-breaking.
monitor_revision/monitorRevisionremoved from the wallet diagnostics snapshots;CoreWalletStateFFIandAccountMetadataFFIchange layout.dash-sdkwithcore_key_wallet, dropsWalletPlatformCheckerandTransactionCheckResult::total_received_for_credit_conversion(rust-dashcore#1479); read Platform credit balances withManagedPlatformAccount::total_credit_balanceandaddress_credit_balanceinstead.PlatformWalletErrorgainsDashpayAccountBuild;ClientWalletStartStategains the required public fieldfunding_issuance_floors(existing struct literals stop compiling; persisters usingrestore_account_address_poolsmust forward the returned stats'funding_issuance_floors, an empty map drops the guard); platform-wallet gainsmanager::restore_account_address_poolswithAddressPoolRestoreStats, andwallet::address_pool_restore::derive_through.Checklist
Attribution
🤖 Generated with Claude Code
https://claude.ai/code/session_01WunYYijwZNbw3EjHtdMAHC
🤖 Co-authored by Claudius the Magnificent AI Agent
PR Hygiene ·
9c2c4cdCargo.lock,Cargo.toml) — approved by shumkovdpp(packages/rs-dpp/Cargo.toml,packages/rs-dpp/src/state_transition/mod.rs,packages/rs-dpp/src/util/ecdsa/mod.rsand 1 more) — approved by shumkovrs-platform-wallet-ffi(packages/rs-platform-wallet-ffi/src/core_address_types.rs,packages/rs-platform-wallet-ffi/src/core_wallet_types.rs,packages/rs-platform-wallet-ffi/src/manager_diagnostics.rsand 1 more) — HashEngineering or ZocoLini or llbartekll or romchornyiwallet-storage(packages/rs-platform-wallet-storage/src/sqlite/migrations/legacy_v008.rs,packages/rs-platform-wallet-storage/src/sqlite/persister.rs,packages/rs-platform-wallet-storage/src/sqlite/provider_accounts.rsand 9 more) — approved by lklimekrs-platform-wallet(packages/rs-platform-wallet/src/changeset/changeset.rs,packages/rs-platform-wallet/src/changeset/client_wallet_start_state.rs,packages/rs-platform-wallet/src/changeset/core_bridge.rsand 31 more) — HashEngineering or ZocoLini or llbartekll or romchornyiswift-sdk(packages/swift-sdk/Sources/SwiftDashSDK/PlatformWallet/PlatformWalletManagerDiagnostics.swift,packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Views/WalletMemoryExplorerView.swift) — llbartekll or romchornyijs-wasm-sdk(packages/wasm-sdk/Cargo.toml) — approved by shumkovWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.