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

Split a single UTXO into two outputs for VSP ticket purchasing #1980

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

jrick
Copy link
Member

@jrick jrick commented Feb 4, 2021

When a wallet account only contains a single UTXO, it is not possible
to perform VSP ticket purchasing, because at least two UTXOs are
required: one to fund the ticket purchase, and a second to pay the
VSP. When UTXO exhaustion is detected during a ticket purchasing
attempt with a VSP configured, attempt to split a UTXO into two
outputs, followed by a reattempted ticket purchase.

The ticket purchase reattempt must be done with a zero minconf policy,
since it still uses the normal UTXO selection instead of precisely
using the newly created outputs from the extra split transaction.
This is not ideal, and may also result in spending other unconfirmed
outputs in the account that were not considered earlier during the
failed purchase attempt.

Copy link
Member

@alexlyp alexlyp left a comment

Choose a reason for hiding this comment

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

tACK

When a wallet account only contains a single UTXO, it is not possible
to perform VSP ticket purchasing, because at least two UTXOs are
required: one to fund the ticket purchase, and a second to pay the
VSP.  When UTXO exhaustion is detected during a ticket purchasing
attempt with a VSP configured, attempt to split a UTXO into two
outputs, followed by a reattempted ticket purchase.

The ticket purchase reattempt must be done with a zero minconf policy,
since it still uses the normal UTXO selection instead of precisely
using the newly created outputs from the extra split transaction.
This is not ideal, and may also result in spending other unconfirmed
outputs in the account that were not considered earlier during the
failed purchase attempt.
@jrick jrick merged commit 03c1606 into decred:master Feb 19, 2021
@jrick jrick deleted the low-utxo-split branch February 19, 2021 19:52
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.

3 participants