AthanorLabs / atomic-swap

💫 ETH-XMR atomic swap implementation
GNU Lesser General Public License v3.0
341 stars 44 forks source link

swapcli wrong ongoing status after restart #440

Open dimalinux opened 1 year ago

dimalinux commented 1 year ago

Had a swap where the taker's server was restarted before the sweep. The logs show that the swap status was updated to SweepingXMR but ./bin/swapcli ongoing is showing the status as ContractReady.

2023-04-27T17:30:08.188Z    INFO    monero  monero/wallet_client.go:461 Created wallet swap-wallet-claim-0xa[...]1c-2023-04-27-17:30:03.507872243, balance is 0.1 XMR (0 blocks to unlock), address is 4A[...]
2023-04-27T17:30:08.188Z    INFO    protocol    protocol/claim_monero.go:68 monero claimed in account 4A[...]; transferring to primary account 44[...]
2023-04-27T17:30:08.190Z    DEBUG   protocol    protocol/claim_monero.go:85 set swap's status to SweepingXMR; swap ID 0xa5[...]
2023-04-27T17:30:08.279Z    INFO    monero  monero/wallet_client.go:334 Starting sweep of 0.1 XMR from 4A[...] to 44[...]
2023-04-27T17:30:09.131Z    INFO    monero  monero/wallet_client.go:352 Sweep transaction started, TX IDs: 9[...]
2023-04-27T17:30:09.264Z    INFO    monero  monero/wallet_client.go:257 Received 0 of 2 confirmations of XMR TXID=9[...] (height=28[...])