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

client/asset/{dcr,btc}: prevent swap broadcast on refund tx errors #1166

Merged
merged 2 commits into from Aug 26, 2021

Conversation

itswisdomagain
Copy link
Member

Do not broadcast swap(s) if there's any trouble generating or signing
the refund txn(s).

Resolves #1163.

Do not broadcast swap(s) if there's any trouble generating or signing
the refund txn(s).
@chappjc chappjc added this to the 0.3 milestone Aug 24, 2021
Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

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

Nice minimal diff. Thanks for a quick fix. Just a couple minor things. I also need to test.

client/asset/btc/btc.go Outdated Show resolved Hide resolved
client/asset/btc/btc.go Outdated Show resolved Hide resolved
Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

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

Looks good. Works for me. @JoeGruffins a look from you would be good if you have a little time for it. It's reordering some operations around those pre-generated refund txns you added.

@chappjc chappjc merged commit bd426fb into decred:master Aug 26, 2021
@itswisdomagain itswisdomagain deleted the refundtxerrs branch August 26, 2021 06:39
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.

client/asset/{dcr,btc}: shouldn't error on failure to generate refund tx
3 participants