-
Notifications
You must be signed in to change notification settings - Fork 59
fix(platform-wallet): give an unconfirmed outgoing send an owner across a restart #4659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
romchornyi
wants to merge
9
commits into
v4.2-dev
Choose a base branch
from
fix/32189-orphaned-unconfirmed-send
base: v4.2-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f388aab
fix(platform-wallet): give an unconfirmed outgoing send an owner acro…
jeanpierreroma a926bde
fix(swift-sdk): hand the unconfirmed outgoing sends to the load path
jeanpierreroma 4d15fbe
test(swift-sdk): pin the selection rule, and stop discarding legacy T…
jeanpierreroma c181c0c
Merge remote-tracking branch 'origin/v4.2-dev' into fix/32189-orphane…
jeanpierreroma 0faf637
fix(platform-wallet): stop logging the expected re-dispatch answer as…
jeanpierreroma 6696093
fix(platform-wallet): replay IS-locked sends too, and order the batch…
jeanpierreroma 02d8e0d
fix(platform-wallet): tie the re-dispatch to the wallet it was loaded…
jeanpierreroma c383d0d
fix(platform-wallet-storage): stage the replay field in the SQLite pe…
jeanpierreroma 9ae3ec8
fix(platform-wallet): hold the lifecycle gate across the liveness che…
jeanpierreroma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Blocking: Preserve the wallet restore FFI layout or version the ABI
WalletRestoreEntryFFIis a#[repr(C)]struct shared across the FFI boundary, but the newunconfirmed_outgoing_tx_recordsfields were inserted before the existing provider, address-pool, and chain-lock fields. This changes both the offsets and the size/array stride of the callback structure. A host compiled against the previous layout will have its provider pointer and subsequent fields read at the wrong Rust offsets, and the new Rust code can read beyond the old allocation. Initializing the new fields to null and zero only protects hosts rebuilt against the new definition; it does not make an older binary pass null/zero for fields that did not exist. Preserve the legacy callback structure and add replay data through a separately versioned callback/API, or add an explicit structure size/version handshake and refuse to read fields beyond the supplied size. Add a legacy-layout compatibility test.source:
gpt-6-astra(phase2-reviewer: general, ffi-engineer)