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

use simulate_operation instead of run_operation #676

Open
nicolasochem opened this issue Jun 27, 2023 · 1 comment
Open

use simulate_operation instead of run_operation #676

nicolasochem opened this issue Jun 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@nicolasochem
Copy link
Contributor

run_operation is deprecated and simulate_operation might give better estimates in order to calculate gas fees and avoid issues such as the one we had during N migraiton.

@nicolasochem nicolasochem added the bug Something isn't working label Jun 27, 2023
@yurug
Copy link

yurug commented Jun 27, 2023

The documentation is here: https://gitlab.com/-/sandbox/swagger#/default/post_helpers_scripts_simulate_operation

It will be improved but here is some curated description of the parameters:

  • successor_level : if true, the simulation is done on the successor level of the current context, not the current context. That's a very technical parameter that should be ignored by the mere mortals. Mainly used in tests.

  • latency: an integer that estimates how many blocks to wait before inclusion.

  • blocks_before_activation: If we are close to a protocol activation, this parameter should be set. Indeed, at activation time, the cache is cleared, so the estimation is impacted. This parameter can be safely ignored.

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