coblox / bobtimus

an autobot that automatically handles swaps as Bob
Apache License 2.0
1 stars 1 forks source link

Better handle when there is not enough bitcoin fund for a fund action #35

Open D4nte opened 5 years ago

D4nte commented 5 years ago

Following logs when there is no funds on Bitcoin to execute fund action:

bobtimus:actionExecutor Execute Ledger Action: {"type":"bitcoin-send-amount-to-address","payload":{"to":"bcrt1q727lsw0n9sr0m9x0ej3t3nzah445tw87sdlyrah3n8rk3ngecqqs76z3yu","amount":"10000","network":"regtest"}} +0ms
  bobtimus:bitcoin:feeservice Return fee: 62 +0ms
  bobtimus:bitcoin:wallet Fee (sats): 2728 +0ms
  bobtimus:index Action execution response for swap undefined: {"error":{},"isOk":false,"isErr":true} +435ms

Task: Make the error object useful. (bitcoind RPC response for example)