Skip to content

chore: bump rust-dashcore to dev f0ddfd45 - #5951

Merged
lklimek merged 2 commits into
v5.2-devfrom
chore/rust-dashcore-dev
Nov 25, 2026
Merged

lklimek merged 2 commits into
v5.2-devfrom
chore/rust-dashcore-dev

Conversation

@Claudius-Maginificent

@Claudius-Maginificent Claudius-Maginificent commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

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-dashcore dev.

Expected behavior

The pin is rust-dashcore dev f0ddfd45. 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

  • All rust-dashcore crates 0.46.0 → 0.47.0 (git rev f0ddfd45f78e639e0caed3312515ac72b28ea823), 52 commits after the 6b985d1f2a19b2a438392822b505627b989be27a pin on v5.2-dev.
  • dash-spv logs with time instead of chrono (rust-dashcore#1428) and gains blake3 for its storage checksums (rust-dashcore#1407); no Platform-facing type changes. Every other lock entry outside rust-dashcore is unchanged.
  • wasm-sdk stays on bip39 2.2.2, with its zeroize feature enabled explicitly.
  • chore: update Rust dependencies #5948's lockfile holds are untouched: ICU =2.2.0, halo2/Orchard crates, unicode-normalization 0.1.25, tokio 1.53.3, tonic-web-wasm-client 0.9.1 and wasm-streams 0.5.

Upstream behavior Platform picks up

No Platform code had to change for these.

  • SPV skips peers that lack the required services (rust-dashcore#1480): such a peer is disconnected and not redialled for 24 hours; manually configured peers are exempt.
  • SPV drops InstantLocks their complete quorum cycle refutes (rust-dashcore#1419). Such a lock is neither cached nor emitted, so the genuine lock for the same transaction is not ignored as a duplicate.
  • SPV storage is checksummed (rust-dashcore#1407). A corrupted segment or masternode snapshot, found on start or while running, wipes the affected storage and syncs again.
  • Masternode engine snapshot version 3 (rust-dashcore#1419). An older snapshot is discarded, so the first start after the upgrade syncs the masternode lists again from the network.
  • SPV storage format 6 (rust-dashcore migrator, from format 3). The upgrade migrates the SPV storage directory in place; an older SDK opening the same directory reports it as corrupt (its newest format is 3), so a rollback that keeps the directory has to clear it and sync SPV again.
  • Mempool results report new_addresses (rust-dashcore#1455), the addresses a mempool transaction derived; the field was always empty before the fix.
  • Also: an InstantSend backfill marks the paid addresses used (rust-dashcore#1447), a late lock checks every account before it files a record (rust-dashcore#1454), filter requests settle when their reply arrives (rust-dashcore#1370), per-peer byte caps follow the served rate (rust-dashcore#1371), and BIP152 getblocktxn indexes are bounded (rust-dashcore#1451).

Code changes

  • platform-wallet: stops setting TransactionCheckResult::state_modified, which key-wallet removed as unread (rust-dashcore#1479). Newly locked collaterals still reach the store through locked_outpoints.
  • platform-wallet, FFI, Swift SDK: monitor_revision removed 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. CoreWalletStateFFI and AccountMetadataFFI shrink accordingly; native ABI compatibility is not guaranteed (docs: state that native ABI compatibility is not guaranteed #5991).
  • platform-wallet, storage, FFI: port to key-wallet's encapsulated AddressPool (rust-dashcore#1377). Pool fields become accessors, mark_index_used becomes mark_used(&Address), and direct pool writes go through AddressPool::insert. AddressInfo lost script_pubkey, balance, tx_count, total_*, label and metadata, so the script now comes from the address. Platform behavior is unchanged except where noted below.
  • Restoring persisted address rows that leave an index gap. AddressPool::insert refuses a row past the next index to derive. platform_wallet::wallet::address_pool_restore derives 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.
  • Funding-key issuance floor after restore. When a funding pool cannot reach its highest persisted row (the gap below it exceeds the budget, or the row is refused), the restore records that row's index as the account's funding issuance floor. It travels through ClientWalletStartState::funding_issuance_floors into 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.
  • Address pool restore lives in platform-wallet. platform_wallet::manager::restore_account_address_pools holds 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_account is 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 calls restore_account_address_pools.
  • Platform-node pool registration stays atomic. AddressPool::insert can refuse a key, so populate_platform_node_pool inserts every entry into a copy of the pool and replaces the pool only when every key is accepted.
  • Legacy stores still migrate. V008's conversion of V001–V007 account_address_pools.snapshot_blob rows decodes them through a private copy of the old positional AddressInfo layout. Without it, wallets upgrading from those versions would fail to migrate.
  • CoreAddressEntryFFI.balance is always written as 0, because key-wallet keeps no per-address balance; the field stays.
  • Split out into a stack on this PR (not required by the bump): fix(platform-wallet): keep pre-derived lost funding rows ineligible after restart #6035 keeps a lost funding row inside the pre-derived window out of issuance; refactor(platform-wallet): drop always-zero Core address balance #6036 drops CoreAddressEntryFFI.balance; refactor(platform-wallet): one owner for platform-node pool entries #6037 gives platform-node pool entries one owner.
  • dpp: util::ecdsa::verify_data_signature maps dashcore's new high-S error back to EcdsaError::VerifyFailed, so callers see the same error as before.

Consensus analysis (no change at any protocol version)

Tests whose state the new API cannot build

key-wallet now keeps pools contiguous, derives highest_used/highest_generated from the entries and clamps gap_limit to 1..=1000. Storage tests that hand-built other states are rebuilt on consistent pools; the test-only MAX_REHYDRATION_GAP_REFILL is 500. Tests of states that no persisted data can produce are removed: the ensure_derived failure, 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

  • Targeted tests for address-row restore and platform-node pools passed; the new invalid-index and atomic platform-node batch regressions failed before their fixes. cargo clippy -p platform-wallet -p platform-wallet-ffi --all-targets --all-features --locked -- --no-deps -D warnings and targeted formatting checks passed. The platform-node test module is gated on eddsa.
  • 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.
  • nextest: dpp 6167, platform-wallet --all-features 2100, 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.
  • At 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 warnings is clean. nextest for platform-wallet, platform-wallet-storage and platform-wallet-ffi (--all-features, without wallet::shielded): 3526/3530 passed. The 4 failures are sqlite_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.
  • At 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 (without wallet::shielded and sqlite_identity_key_restore). New restore tests were confirmed failing before their fixes.
  • Not run locally: the Swift SDK / SwiftExampleApp Xcode build and the Kotlin build. The only Swift edit removes monitorRevision, and Kotlin is unchanged; every use was checked by grep.

Follow-ups

Breaking changes

None is consensus-breaking.

  • FFI/Swift: monitor_revision / monitorRevision removed from the wallet diagnostics snapshots; CoreWalletStateFFI and AccountMetadataFFI change layout.
  • Rust (source migration): key-wallet, re-exported through DPP and dash-sdk with core_key_wallet, drops WalletPlatformChecker and TransactionCheckResult::total_received_for_credit_conversion (rust-dashcore#1479); read Platform credit balances with ManagedPlatformAccount::total_credit_balance and address_credit_balance instead.
  • Rust: PlatformWalletError gains DashpayAccountBuild; ClientWalletStartState gains the required public field funding_issuance_floors (existing struct literals stop compiling; persisters using restore_account_address_pools must forward the returned stats' funding_issuance_floors, an empty map drops the guard); platform-wallet gains manager::restore_account_address_pools with AddressPoolRestoreStats, and wallet::address_pool_restore::derive_through.

Checklist

  • I have performed a self-review of my own code
  • My Rust, FFI, WASM, Swift or Kotlin changes follow the coding conventions
  • I have added or updated relevant unit/integration/functional/e2e tests

Attribution

🤖 Generated with Claude Code

https://claude.ai/code/session_01WunYYijwZNbw3EjHtdMAHC

🤖 Co-authored by Claudius the Magnificent AI Agent

PR Hygiene · 9c2c4cd

  • Bots — thepastaclaw ✓
  • Self-review — not asked of a bot author
  • Build green
  • Approvals
    • files with no dedicated owner (Cargo.lock, Cargo.toml) — approved by shumkov
    • dpp (packages/rs-dpp/Cargo.toml, packages/rs-dpp/src/state_transition/mod.rs, packages/rs-dpp/src/util/ecdsa/mod.rs and 1 more) — approved by shumkov
    • rs-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.rs and 1 more) — HashEngineering or ZocoLini or llbartekll or romchornyi
    • wallet-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.rs and 9 more) — approved by lklimek
    • rs-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.rs and 31 more) — HashEngineering or ZocoLini or llbartekll or romchornyi
    • swift-sdk (packages/swift-sdk/Sources/SwiftDashSDK/PlatformWallet/PlatformWalletManagerDiagnostics.swift, packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Views/WalletMemoryExplorerView.swift) — llbartekll or romchornyi
    • js-wasm-sdk (packages/wasm-sdk/Cargo.toml) — approved by 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.

@coderabbitai

coderabbitai Bot commented Nov 17, 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

@thepastaclaw

thepastaclaw commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Final review complete — no blockers (commit 9c2c4cd) · triage: critical

@Claudius-Maginificent Claudius-Maginificent changed the title chore(deps)!: bump rust-dashcore to dev d85f15ac chore!: bump rust-dashcore to dev d85f15ac Nov 17, 2026
lklimek
lklimek previously approved these changes Nov 17, 2026
@lklimek
lklimek marked this pull request as ready for review November 17, 2026 06:41

@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

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: critical by gpt-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); agent phase1-reviewer, muse-spark-1.3-contributor — rust-quality (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)
  • 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; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — architecture-layering (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — ffi-engineer (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — rust-quality (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort xhigh); agent phase2-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.

Comment thread Cargo.toml Resolved

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

@github-actions

Copy link
Copy Markdown
Contributor

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

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

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@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 — 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: critical by gpt-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); agent phase1-reviewer, muse-spark-1.3-contributor — rust-quality (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)
  • 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; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — architecture-layering (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — ffi-engineer (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — rust-quality (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — general (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — architecture-layering (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — ffi-engineer (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — rust-quality (completed, effort xhigh); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort xhigh); agent phase2-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.

@github-actions github-actions Bot added waiting-self-review Waiting for the author to post /self-reviewed and removed waiting-bots Waiting for the review bots to report on this head labels Nov 17, 2026
@Claudius-Maginificent Claudius-Maginificent changed the title chore!: bump rust-dashcore to dev d85f15ac chore: bump rust-dashcore to dev 399f47f9 Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added waiting-bots Waiting for the review bots to report on this head and removed waiting-self-review Waiting for the author to post /self-reviewed labels Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Ready for review — files with no dedicated owner: QuantumExplorer or shumkov · dpp: QuantumExplorer or shumkov · js-wasm-sdk: shumkov.
Full checklist in the description.

@github-actions github-actions Bot added ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human. and removed waiting-self-review Waiting for the author to post /self-reviewed labels Nov 22, 2026
@github-actions
github-actions Bot requested a review from lklimek November 22, 2026 23:01
lklimek
lklimek previously approved these changes Nov 22, 2026
llbartekll
llbartekll previously approved these changes Nov 24, 2026

@llbartekll llbartekll left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the platform-wallet, platform-wallet-ffi and Swift parts at b1ef060. No blocking findings.

What I checked:

  • The AddressPool port against key-wallet at f0ddfd45: insert's gap and duplicate-address rules, next_address(None) selecting the same row as the builder's peek_next_path, and reserve / unmark_used replacing the hand-written state edits one for one.
  • Moving the restore into restore_account_address_pools keeps 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_revision is 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]>
@lklimek
lklimek added this pull request to stack #6217 November 24, 2026 11:38
@lklimek
lklimek dismissed stale reviews from llbartekll and themself via 9c2c4cd November 24, 2026 11:57
@lklimek
lklimek force-pushed the chore/rust-dashcore-dev branch from b1ef060 to 9c2c4cd Compare November 24, 2026 11:57
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added waiting-bots Waiting for the review bots to report on this head and removed ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human. labels Nov 24, 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 — 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: critical by gpt-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); agent phase1-reviewer, muse-spark-1.3-contributor — rust-quality (completed, effort xhigh); agent phase1-reviewer
  • Phase 1 model: muse-spark-1.3-contributor — not quota-gated; passed over gemini-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; agent sol-verifier
  • Phase 2 reviewers: gpt-6.2-astra — general (completed, effort high); agent phase2-reviewer, gpt-6.2-astra — architecture-layering (completed, effort high); agent phase2-reviewer, gpt-6.2-astra — ffi-engineer (completed, effort high); agent phase2-reviewer, gpt-6.2-astra — platform-versioning (completed, effort high); agent phase2-reviewer, gpt-6.2-astra — rust-quality (completed, effort high); agent phase2-reviewer, gpt-6.2-astra — security-auditor (completed, effort high); agent phase2-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.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Ready for review — rs-platform-wallet-ffi: HashEngineering or ZocoLini or llbartekll or romchornyi · rs-platform-wallet: HashEngineering or ZocoLini or llbartekll or romchornyi · swift-sdk: llbartekll or romchornyi.
Full checklist in the description.

@github-actions github-actions Bot added ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human. and removed waiting-bots Waiting for the review bots to report on this head labels Nov 24, 2026
@lklimek
lklimek merged commit 61c60e0 into v5.2-dev Nov 25, 2026
72 of 74 checks passed
@lklimek
lklimek deleted the chore/rust-dashcore-dev branch November 25, 2026 09:19
HashEngineering added a commit that referenced this pull request Nov 25, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants