-
Notifications
You must be signed in to change notification settings - Fork 21
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
simulateTransaction to expose a way to modify resources #253
Comments
Your proposed feature addresses a specific requirement to fine-tune the resource usage during transaction simulation in Stellar's Soroban environment. By introducing the ability to adjust resources via additive values directly in the Here's an outline of how your proposal solves the existing problem:
In summary, your proposal to extend the |
refundableFeeAdditiveValue would sure have saved some headaches |
What problem does your feature solve?
As this requested change is scoped specifically for
simulateTransaction
from stellar-core team. In march 2024, core released an ability to add a multiplicative factor or additive factor to adjust resources: https://github.com/stellar/rs-soroban-env/blob/main/soroban-simulation/src/simulation.rs#L23-L39What would you like to see?
We propose to add the following field to the optional resourceConfig in the simulateTransaction endpoint to support this change.
resourceConfig
(optional)instructionLeeway
: allows this many extra instruction when budgeting resources (already available)readBytesAdditiveValue
writeBytesAdditiveValue
txSizeAdditiveValue
refundableFeeAdditiveValue
The text was updated successfully, but these errors were encountered: