-
Notifications
You must be signed in to change notification settings - Fork 94
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
Comments
@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? |
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 |
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 |
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
The text was updated successfully, but these errors were encountered: