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

Out_of_gas exception in case of big order queues #23

Open
unboxedtype opened this issue Nov 12, 2021 · 0 comments
Open

Out_of_gas exception in case of big order queues #23

unboxedtype opened this issue Nov 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@unboxedtype
Copy link

Before executing the order, Price contract searches for the most recent active order to process, filtering out all inactive orders.
It does this by traversing the order queue here:
https://github.com/tonlabs/flex/blob/3aaa20eb73e7498d08d39191d693f1efa7d016eb/flex/Price.cpp#L84

The loop is not bounded by any means, and, in case of big queues, such processing may lead to out_of_gas exception.
From this point, the Price contract will no longer be able to process orders.

@azhogin azhogin added the bug Something isn't working label Dec 1, 2021
gitbook-com bot pushed a commit that referenced this issue Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants