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

Unstable order of claimable balance effects during liquidity pool revocation #3942

Closed
2opremio opened this issue Sep 20, 2021 · 3 comments
Closed
Labels
amm support cap 38 (automated market makers) in horizon

Comments

@2opremio
Copy link
Contributor

2opremio commented Sep 20, 2021

The Liquidity Pool revocation integration test is flaky due to the claimable balance effects not being ordered consistently in different executions.

See https://app.circleci.com/pipelines/github/stellar/go/9376/workflows/560678ef-ba51-40af-8d78-cec2dee83151 (e.g. https://app.circleci.com/pipelines/github/stellar/go/9376/workflows/560678ef-ba51-40af-8d78-cec2dee83151/jobs/53849 ).

This is (most probably) due to core's metadata not being ordered consistently (i.e. the relative order of the claimable balance changes of the liquidity pool assets should be stable).

We could consider this "feature" but I think core should always output the same order.

@2opremio 2opremio added the amm support cap 38 (automated market makers) in horizon label Sep 20, 2021
@jonjove
Copy link

jonjove commented Sep 20, 2021

There is no meaningful ordering on the meta within a single operation. We could pick an order, but sorting it into that order would make core slower. There is no reason to assume that every consumer expects the meta to have a specific order, so I don't really see a justification for making core slower.

@bartekn
Copy link
Contributor

bartekn commented Oct 7, 2021

Fixed in #3943?

@2opremio
Copy link
Contributor Author

2opremio commented Oct 7, 2021

Yep!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amm support cap 38 (automated market makers) in horizon
Projects
None yet
Development

No branches or pull requests

3 participants