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
The asset ordering in the /trades endpoint is not deterministic. See, for example how responses are different for the same request ( /trades?cursor=133053547049738241-0&limit=10&order=asc ) in https://horizon.stellar.org/ vs https://horizon-stg-pubnet.stellar.org/.
/trades
/trades?cursor=133053547049738241-0&limit=10&order=asc
The ordering should be stable as a good practice. On top of that, it causes false positives in horizon-cmp.
horizon-cmp
Here is the code responsible for the ordering:
go/services/horizon/internal/db2/history/trade_batch_insert_builder.go
Lines 68 to 70 in 06b6a58
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The asset ordering in the
/tradesendpoint is not deterministic. See, for example how responses are different for the same request (/trades?cursor=133053547049738241-0&limit=10&order=asc) in https://horizon.stellar.org/ vs https://horizon-stg-pubnet.stellar.org/.The ordering should be stable as a good practice. On top of that, it causes false positives in
horizon-cmp.Here is the code responsible for the ordering:
go/services/horizon/internal/db2/history/trade_batch_insert_builder.go
Lines 68 to 70 in 06b6a58
The text was updated successfully, but these errors were encountered: