AthanorLabs/atomic-swap

write newSwap TX ID to database as soon as TX is sent to mempool

dimalinux opened this issue · 0 comments

Unexpected things can happen in production like a NewSwap transaction getting mined 2 hours after it was sent. We should save the TX ID to the database before waiting for its receipt, so out tooling still help the user make a refund if the TX gets mined, even if swapd is shutdown before the TX is included in a block.