lukechilds / hyperdex-bugtracker

0 stars 1 forks source link

Take into account lock time after a failed trade request #7

Closed jansako closed 6 years ago

jansako commented 6 years ago

I have one UTXO, try to get a trade. A trade fails (for whatever reason), but my UTXO is still locked until 'locktime' expires. When I try to executre another trade before that, I get this error: image

Suggestion: different messages for when the UTXO is locked, from a genuine 'you don't have enough funds to execute this'

jansako commented 6 years ago

I suppose this is the same 'error handling' situation that needs to be fixed on MM side? https://github.com/lukechilds/hyperdex-bugtracker/issues/6

lukechilds commented 6 years ago

Yeah, will close this in favour of https://github.com/lukechilds/hyperdex-bugtracker/issues/6. Also updated the title in the other issues to "Improve Error Reporting" so it's more generic.

Thanks for reporting!

lukechilds commented 6 years ago

And regarding:

Suggestion: different messages for when the UTXO is locked, from a genuine 'you don't have enough funds to execute this'

As you guessed, the message comes direct from mm so we have no way to differentiate. We need mm to have much better error reporting before we can show useful messages.