Skip to content
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

Make change of async payment spendable #324

Merged
merged 12 commits into from
Sep 19, 2024

Conversation

altafan
Copy link
Collaborator

@altafan altafan commented Sep 19, 2024

With this, once an async payment is completed, the ASP registers the change (if existing) as a non-pending vtxo so that it can be spent without being claimed.

As the sent vtxo now contains a revert policy, the asp returns it as spendable when the sender calls ListVtxos. Since we don't implement any revert feature, changes have been introduced to the SDK to ignore such vtxos.

NOTE: contains minor fixes to common and server's interface layer.

Closes #292.

Please @louisinger @sekulicd @bordalix review this.

altafan and others added 7 commits September 19, 2024 16:36
Co-authored-by: Louis Singer <louisinger@users.noreply.github.com>
Co-authored-by: Louis Singer <louisinger@users.noreply.github.com>
Co-authored-by: João Bordalo <bordalix@users.noreply.github.com>
@altafan altafan merged commit 5c2065a into ark-network:master Sep 19, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow spending a "pending" change via async payment
2 participants