-
Notifications
You must be signed in to change notification settings - Fork 56
feat(kotlin-sdk): split build/broadcast with reservation release for BIP70-style deferred submission #4185
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
bfoss765
wants to merge
26
commits into
dashpay:v4.2-dev
Choose a base branch
from
bfoss765:port/v4.1/split-build-broadcast
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
feat(kotlin-sdk): split build/broadcast with reservation release for BIP70-style deferred submission #4185
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
78a4b0b
feat(kotlin-sdk): split build/broadcast with reservation release for …
bfoss765 558455c
fix(kotlin-sdk): bound deferred-payment token lifetime; harden regist…
bfoss765 308479d
fix(kotlin-sdk): resolve rebase semantic conflicts onto feat/kotlin-s…
bfoss765 ddc8872
fix(kotlin-sdk): assert native code 26 for the stale-reservation-toke…
bfoss765 7f7b020
fix(kotlin-sdk): bound the deferred-payment token on the reservation'…
bfoss765 ade3999
fix(kotlin-sdk): sweep deferred-payment tokens only when the final wa…
bfoss765 36a6afe
fix(kotlin-sdk): route deferred builds through the atomic finalize-an…
bfoss765 0f5ac19
fix(kotlin-sdk): delete the dead split register→broadcast chain
bfoss765 9eb53b3
fix(kotlin-sdk): baseline the deferred token age on the pre-signing r…
bfoss765 1678804
fix(kotlin-sdk): give the V2 handle and token paths one wallet-genera…
bfoss765 1458d5b
fix(kotlin-sdk): validate the deferred token under the lock, consume …
bfoss765 fba8c48
fix(kotlin-sdk): release deferred reservations at final-alias destroy…
bfoss765 6f5edea
fix(kotlin-sdk): split the conflated deferred-token error code into t…
bfoss765 1d4b3fa
docs(kotlin-sdk): correct buildSignedPayment KDoc to the finalize-and…
bfoss765 3ef6e89
fix(kotlin-sdk): make the deferred payment token an owning AutoClosea…
bfoss765 c5677bf
style(kotlin-sdk): rustfmt wallet_manager.rs after the dead-chain del…
bfoss765 e219883
fix(kotlin-sdk): object-owning broadcast/release overloads for Signed…
bfoss765 47b4d53
fix(kotlin-sdk): retain a releasable account handle for CoinJoin-fund…
bfoss765 6d6bf61
fix(kotlin-sdk): bind deferred-payment reservation cleanup to its own…
bfoss765 74f9ae4
fix(swift-sdk): surface deferred-token codes 26/27/28 as typed errors
bfoss765 90f144d
docs(kotlin-sdk): correct broadcast KDoc to the split deferred-token …
bfoss765 a020d7d
chore(rust-dashcore): re-pin to owner-tagged reservation API rev
bfoss765 d5f16a6
fix: renumber deferred-reservation error codes to 27/28/29
bfoss765 3f719d4
fix(platform-wallet): owner-guard the broadcast-reject reservation re…
bfoss765 440897c
fix(platform-wallet): enforce unique reservation ownership, stop wrap…
bfoss765 7d85953
fix(platform-wallet): bind registration to correct wallet generation …
bfoss765 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
🟡 Suggestion: Release the native token if Kotlin owner construction fails
Native finalization has already inserted the payment and committed its reservation when this byte array returns. The token does not gain its owning
NativeCleaneruntilSignedCoreTransaction.fromRegisterBlobfinishes, so an allocation failure, malformed-data exception from an ABI mismatch, or Cleaner-registration failure leaves the native token registered without any JVM owner capable of releasing it. Parse the token first and release it defensively if construction of the ownership object throws.source: ['codex']
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.
Resolved in
7d85953— Release the native token if Kotlin owner construction fails no longer present.Auto-resolved by the review system based on the latest commit diff. If you believe this was closed in error, reopen the thread.