-
Notifications
You must be signed in to change notification settings - Fork 115
Description
Describe the bug
Recently, we saw a user report where kdf tries takerpayment refund eventhough both taker payment and maker payment are already spent. This is because it saw MakerPaymentSpendConfirmFailed (confirmations were later than expected for makepaymentspent txn). But, TakerPaymentRefundFailed because the inputs were already spent. user saw a "recover" button in the app but the button can't do anything and the UI has no way to resolve this
@shamardy said the PR: #2280 aims to solve this issue and the PR description includes:
Also recover_funds has been adapted to return more structured error types for information about retrials and such. Also removing some pre-checks that makes us fail early based on local data (e.g. is_swap_finished), as we should still query the rpc to make sure our recovery tx isn't lost or something.
but, it was also mentioned that the linked PR is a draft for now and the same recovery logic must be implemented for the TPU implementation instead