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

Fix: unreserve utxos #286

Merged
merged 5 commits into from
Aug 26, 2023
Merged

Fix: unreserve utxos #286

merged 5 commits into from
Aug 26, 2023

Conversation

arkadiuszos4chain
Copy link
Contributor

Motivation:

Creation of a draft transaction will mark UTXOs as reserved, and those UTXOs can't be used for another transaction.

If a draft transaction was created, but the "record transaction" process failed, UTXOs will still be reserved and can't be used for another payment.

A mechanism for unreserving UTXOs should be added for such cases.

PR includes:

  • http PATCH endpoint for unreserve UTXOs
  • graphQL mutation for unreserve UTXOs
  • tests refactorization -> introducing Test Base functions

@mergify
Copy link
Contributor

mergify bot commented Aug 23, 2023

Welcome to our open-source project @arkadiuszos4chain! 💘

@mergify mergify bot added the bug-P3 Lowest rated bug, affects nearly none or low-impact label Aug 23, 2023
Copy link
Contributor

@mrz1836 mrz1836 left a comment

Choose a reason for hiding this comment

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

Tests failed, probably missing the Bux related PR.

Copy link
Contributor

@mrz1836 mrz1836 left a comment

Choose a reason for hiding this comment

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

Merge conflict, probably with the bux version vs dependabot. @arkadiuszos4chain @pawellewandowski98

@mrz1836
Copy link
Contributor

mrz1836 commented Aug 24, 2023

@arkadiuszos4chain linter failed, few fixes required.

@mrz1836
Copy link
Contributor

mrz1836 commented Aug 26, 2023

Going to merge and fix it

@mrz1836 mrz1836 merged commit 90200b2 into bitcoin-sv:master Aug 26, 2023
@proapi proapi deleted the fix-unreserve-utxos branch August 29, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-P3 Lowest rated bug, affects nearly none or low-impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants