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

Trades with a mediated payout end up in failed trades #3727

Closed
chimp1984 opened this issue Dec 2, 2019 · 6 comments · Fixed by #3726
Closed

Trades with a mediated payout end up in failed trades #3727

chimp1984 opened this issue Dec 2, 2019 · 6 comments · Fixed by #3726

Comments

@chimp1984
Copy link
Contributor

If a trades gets payed out via a mediated payout the trade will be moved to failed trades after a restart. This happens with payout to both traders as well as with payout to only 1 trader.

@chimp1984
Copy link
Contributor Author

Fixed with #3726

@julianknutsen
Copy link
Contributor

Thanks for splitting this out. It will be easier to verify the fix since they aren't related.

@julianknutsen
Copy link
Contributor

julianknutsen commented Dec 3, 2019

I was able to confirm the repro on this bug of 5fa88cc.

failed_trade_repro
failed_trade_repro2

I was also able to verify it was fixed on c2e8806.

failed_trade_repro3

I did notice that this is more than just a UI bug. If this bug occurs the trade is marked FAILED even after the software is updated. Is that the intended behavior, @chimp1984?

@chimp1984
Copy link
Contributor Author

@julianknutsen

is marked FAILED even after the software is updated

You mean that past trades which ended up in the failed trades list are not reverted to closed trades after the update?
That would require some more handling to move those trades out of the failed trades list and into the closed trades list. I am not sure if that is highly required for the release but would be good to fix as well.

@julianknutsen
Copy link
Contributor

Correct. Past failed trades are not "fixed" and turned into closed trades. I just wanted to verify that the bug was more than just a UI issue and that state exists that would persist previously failed trades. It sounds like that was the case so the fix is working as intended.

@julianknutsen
Copy link
Contributor

julianknutsen commented Dec 3, 2019

@chimp1984 @ripcurlx This should be reopened. It just happened again when testing 5880ad9

I ran the Mediation/Support Process 0001-0018 and then restarted the localnet.

I'll see if I can get a quicker repro, but here is the data. No logs... dir moved from localnet to .localnet underneath me and didn't realize. If I get another repro I'll add them.

mediated_trade_failed
mediated_trade_failed2
mediated_trade_failed3

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

Successfully merging a pull request may close this issue.

2 participants