boltz-backend icon indicating copy to clipboard operation
boltz-backend copied to clipboard

Chain/Submarine Swaps: Continue watching chain after a tx was dropped from mempool

Open kilrau opened this issue 5 months ago • 0 comments

Today I discovered an interesting edge case that we are not handling correctly:

  1. User sends bitcoin transaction into the swap
  2. Transaction disappears from the mempool (whatever the reason)
  3. Backend notices this (Could not find unconfirmed BTC user lockup transaction of Chain Swap ABC: No such mempool or blockchain transaction. ID: xyz and looks like backend stops watching the chain after this
  4. User sends new transaction into lockup way within expiry limit
  5. Swap expires because backend never knew about the new tx. Refund doesn't work.

kilrau avatar Oct 03 '24 19:10 kilrau