fix(rs-dpp): Remove overflows - #818
Closed
qrayven wants to merge 12 commits into
Closed
Conversation
qrayven
force-pushed
the
fix/remove-overflow
branch
from
March 14, 2023 09:25
6502205 to
7ae7c6e
Compare
Contributor
Author
|
Closed due to of too many conflicts |
This was referenced Jul 20, 2026
feat(platform-wallet-storage): embeddable SQLite persistence backend with seedless rehydration
#3968
Open
6 tasks
bfoss765
added a commit
to bfoss765/platform
that referenced
this pull request
Aug 5, 2026
…field The key-wallet pin bump takes key-wallet dashpay#818, which dropped `generated_at` / `used_at` from `#[repr(C)] FFIAddressInfo`. `build_ios.sh` regenerates that crate's cbindgen header into DashSDKFFI.xcframework, so a fresh framework build left AddressPool.swift referencing a member the C struct no longer has: error: value of type 'FFIAddressInfo' has no member 'generated_at' `generatedAt` is kept (public API, no in-repo or observable change) and pinned to the Unix epoch. That is not a substituted value: every key-wallet `AddressInfo` constructor set `generated_at: 0` ("Should use actual timestamp"), so the property has always evaluated to the epoch. Both it and `used` now document the new `AddressState` model, including that a `Reserved` address reports `used == false` and that reservation state is not observable across the C surface. Also settles the persistence round-trip question raised in review. `generated_at` / `used_at` were never serialized — `CoreAddressEntryFFI` has no field for them, and `address_info_from_ffi` was the only producer, from the literals `0` / `Some(0)` — so dropping them is lossless. `Reserved { at }` genuinely has no slot in that schema and would reload as `Available`, but nothing in platform reserves addresses (no caller of `next_receive_address_and_reserve` / `next_unused_and_reserve` in the workspace), so the loss is unreachable today rather than live. The emit path now spells the `Reserved` arm out and warns instead of silently flattening it, the schema field documents the constraint, and a new test pins the behavior so a future reserving caller surfaces as a schema decision. Verified: `cargo check --workspace --all-targets` clean; platform-wallet 513 passed, platform-wallet-ffi 221 passed; rustfmt clean; scoped clippy (the CI invocation) clean. Swift verified by type-checking the whole SwiftDashSDK module under -swift-version 6 -warnings-as-errors against the cbindgen headers regenerated from the new pin — clean, and the pre-fix source reproduces the reviewer's exact error against the same headers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merged
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes potential overflows and unifies types for common fileds containg numbers
Issue being fixed or feature implemented
What was done?
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only