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

swaps are showing as failed on taker when watcher completed it #1887

Closed
cipig opened this issue Jun 27, 2023 · 4 comments
Closed

swaps are showing as failed on taker when watcher completed it #1887

cipig opened this issue Jun 27, 2023 · 4 comments
Assignees
Labels

Comments

@cipig
Copy link
Member

cipig commented Jun 27, 2023

During watcher testing, we found out that the swaps finished by the watcher are marked as failed and recoverable on taker after he goes back online.
The test was done by killing mm2 on taker after he sent takerpayment.
The watcher completed the swap later:
27 06:17:33, mm2_main::mm2::lp_swap::swap_watcher:416] INFO Maker payment spend sent: Maker payment spend tx a3a3403e35beb13ffb319c320c95cf758aad876656c3c2a2f591d4833a596f4e sent by watcher

Restarted taker after that and saw that i had the funds, but the swap was marked failed and recoverable. The recover fails of course, since watcher already sent makerpayment to taker.

This is the swap JSON from taker:
abd9ec38-6607-49c0-8468-281173f8bdd4.json.txt

@caglaryucekaya
Copy link

@cipig How long after did you restart the taker?

@cipig
Copy link
Member Author

cipig commented Jun 29, 2023

@cipig How long after did you restart the taker?

That is a good question, i guess a couple hours, but can't tell for sure. Does it make a difference?

@caglaryucekaya
Copy link

Yeah also from the timestamps it looks like a few hours later. I wanted to understand why the swap failed in your case because when I try to reproduce the bug the taker just sends the MakerPaymentSpend transaction a second time after the watcher and completes the swap as successful. It failed in your case because the locktime was passed. No it doesn't make a difference since the problem is that the taker shouldn't start the swap again if the watcher already completed it.

@cipig
Copy link
Member Author

cipig commented Jun 29, 2023

i wanted to test the new watcher thing, so i started a swap and killed the taker after he sent takerpayment... so taker can't complete the swap, since it was not running any more

shamardy pushed a commit that referenced this issue Jul 6, 2023
This commit disables the utxo/utxo watchtower functionality temporarily due to #1887. It should be activated again once #1887 is resolved.
laruh pushed a commit that referenced this issue Jul 6, 2023
This commit disables the utxo/utxo watchtower functionality temporarily due to #1887. It should be activated again once #1887 is resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants