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 claimTransactionId typo #45

Merged
merged 1 commit into from
Jul 8, 2021
Merged

Conversation

rkfg
Copy link
Contributor

@rkfg rkfg commented Jul 6, 2021

So today I couldn't finish a reverse swap with Boltz due to a weird error: Could not decode claim address of Reverse Swap: decoded address is of unknown format. Debugging with the almighty log.Printf revealed that the claim address is actually empty! But it was present in the database as I found using sqlite3. After about an hour of searching for clues I accidentally noticed that a particular field is used twice for different SQL columns. I have no idea how it worked before and why it stopped today (I used the same binary a couple of days ago), maybe the column order returned by SQLite was different so the claimAddress was put after claimTransactionId (which is of course empty before we sweep the funds!).

Anyway, now it's fixed. Hopefully, Boltz will see less failed swaps now, every such swap costs them on-chain fees and on Lightning cancellation is 100% free.

Copy link
Member

@michael1011 michael1011 left a comment

Choose a reason for hiding this comment

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

Oh, that was a stupid oversight of mine 😅

Thank you very much for the fix!

@michael1011 michael1011 merged commit 41f21a4 into BoltzExchange:master Jul 8, 2021
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.

None yet

2 participants