-
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
Maker payment wait refund 2 days overdue #843
Comments
Thanks for opening the issue! I will investigate it. |
@cipig Could you please request a block from the DOGE daemon that was close to the swap's start time and share the result? |
The problem is Doge has a custom AuxPOW block header format. It leads to MM2 reading a random sequence of bytes as a block timestamp so it can get a number like |
@cipig Could you please trigger the Doge refund in Electrum mode using the MM2 from linked PR? It should be fixed now. |
works good now, thanks for the fix
|
Thanks for the report and testing 🙂 |
…x-aux-pow Support AuxPOW block header (DOGE). CanRefundHtlc::HaveToWait max 1 hour. #843
Unfortunately this happened again, but this time with FIRO as makercoin:
this are the makerpayments: maker is using electrum for FIRO |
@cipig Could you please retest FIRO using the https://github.com/KomodoPlatform/atomicDEX-API/tree/mm2.1-fix-firo-refund branch? |
the 2 swaps were refunded right after restart
1616527306 is 19:21:46 this is the relevant part from swap json:
|
Thanks for testing!
The specified time can be considered as approximate because we should wait for more for MTP to advance, and this time can not be calculated with 100% precision. I'm closing this issue, please feel free to reopen if you discover more of such coins. |
Verus had similar problem, fixed in 335c960 |
found another coin where this is still present: SYS |
Thanks for the report, I reopen the issue until SYS is fixed. |
@cipig Should be fixed now, could you please test the linked PR? |
the refund worked fine this time, thanks for the fix
|
Great, closing until we discover a new coin with such behavior:slightly_smiling_face: |
after a failed swap (TakerPaymentValidateFailed), maker waits for maker payment refund forever (looks like)
console shows this, which is 2 days ago:
| (3526:26) [swap uuid=c246d768-d951-4827-8e07-12ac8a73ea2d] Maker payment wait refund till 1614622051 started...
after restarting mm2, maker payment is refunded immediately:
makerpayment DOGE: https://blockchair.com/dogecoin/transaction/7322d727cff66d88f3f7abf5fd532713728d67de97c55009b3364f23ba5663b8
makerpaymentrefund DOGE: https://blockchair.com/dogecoin/transaction/919f4d098ca9617ba94da18b87660ca293c3231a51d503c32cb47154a04891d8
The text was updated successfully, but these errors were encountered: