Skip to content
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

ASB failing to complete swap transactions #1452

Open
guardian-beach opened this issue Nov 5, 2023 · 0 comments
Open

ASB failing to complete swap transactions #1452

guardian-beach opened this issue Nov 5, 2023 · 0 comments

Comments

@guardian-beach
Copy link

Describe the bug
The asb often (perhaps even 100% of the time) is now failing to complete swap transactions when requested by a taker.

There are two common error conditions:

  • JSON-RPC errors (Swap failed: JSON-RPC request failed with code -4: failed to get output distribution: JSON-RPC request failed with code -4: failed to get output distribution)
  • asb simply not recognising Bitcoin lock transactions in the mempool

The result is that the swap ends up SAFELY_ABORTED instead of continuing normally. This is very annoying for the user, at best. It does not result in funds getting lost.

It is probably related to #1425 and #1432.

This happened with an older "preview" release (checked out master/HEAD). Upgraded to 0.12.3 release, will see if it persists.

Lost/trapped Funds
No

Debug logs

{"timestamp":"2023-11-02T17:26:56.944742906Z","level":"INFO","fields":{"message":"Advancing state","state":"started","rate":"0.00497738 BTC"},"span":{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"},"spans":[{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"}]}                                                                                                                                                               
{"timestamp":"2023-11-02T17:26:57.394814348Z","level":"DEBUG","fields":{"message":"Found relevant Bitcoin transaction","txid":"f0f3a11bccbc90b782e077a5c52937169a5b330e2c98dc98e38941dec2b14c9c","status":"unseen"}}       
{"timestamp":"2023-11-02T17:27:57.64604526Z","level":"INFO","fields":{"message":"Advancing state","state":"bitcoin lock transaction in mempool","rate":"0.00497573 BTC"},"span":{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5
","name":"swap"},"spans":[{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"}]}                                                                                                                                    
{"timestamp":"2023-11-02T17:27:57.646119074Z","level":"INFO","fields":{"message":"Waiting for Bitcoin transaction finality","txid":"f00bar","required_confirmatio
n":"1"},"span":{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"},"spans":[{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"}]}                                                                          {"timestamp":"2023-11-02T17:50:00.490746763Z","level":"INFO","fields":{"message":"Waiting for Bitcoin transaction finality","txid":"f00ar","seen_confirmations":
"1","needed_confirmations":"1"},"span":{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"},"spans":[{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"}]}                                                  {"timestamp":"2023-11-02T17:50:00.60624155Z","level":"INFO","fields":{"message":"Advancing state","state":"btc is locked","rate":"0.00496874 BTC"},"span":{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"},"span
s":[{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"}]}                                                                                                                                                          {"timestamp":"2023-11-02T17:53:33.019406929Z","level":"ERROR","fields":{"error":"JSON-RPC request failed with code -4: failed to get output distribution"},"span":{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap
"},"spans":[{"id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5","name":"swap"}]}                                                                                                                                                  
{"timestamp":"2023-11-02T17:53:33.01958756Z","level":"ERROR","fields":{"message":"Swap failed: JSON-RPC request failed with code -4: failed to get output distribution: JSON-RPC request failed with code -4: failed to get output distribution","swap_id":"d999ebf8-618a-4c8b-9d75-bfdd9532d3b5"}}                                                                                                                                                   
{"timestamp":"2023-11-02T17:53:39.97070916Z","level":"DEBUG","fields":{"message":"A swap stopped without sending a transfer proof: request channel closed"}}  

Platform (please complete the following information):

  • ASB
  • Software Version: this was with an older "preview" release (checked out HEAD in the Git repo).
  • Operating System: Debian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant