-
Notifications
You must be signed in to change notification settings - Fork 41
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
Reset partial host state between top-level invocations #735
Comments
To expand on this a bit: we should probably reset budget after (or before) every contract invocation. It's probably also a good idea to reset the footprint as well. This way the users will be able to get both metering data and footprint data concerning only a single interesting invocation vs getting whatever has been accumulated before. |
Add the original PR comment for a bit more context. #704 (comment) |
Every top-level contract invocation. For sub-invocations we shouldn't fiddle with the state I don't think. |
Yeah, definitely. Currently we only reset the auth manager when we pop the last frame. Instead, we should probably reset auth, budget and events when we push the first frame into stack. This will make sure that everything is clean when the contract is called (unlike auth budget is affected by pretty much any |
We (cc @dmkozh @graydon) discussed this issue in our planning meeting, here is a summary. |
stellar/rs-soroban-sdk#1113 is the related issue. |
Closing as per above. |
No description provided.
The text was updated successfully, but these errors were encountered: