-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Implement a simulate-only CLI flag/field for REST endpoints #2110
Labels
Comments
cc @fedekunze for context on what we need Voyager-side |
5 tasks
alessio
added a commit
that referenced
this issue
Aug 29, 2018
alessio
added a commit
that referenced
this issue
Aug 30, 2018
Add a simulate only flag '--dry-run' to both CLI tx commands and RESTful endpoints to trigger the simulation of unsigned transactions. * Turning --dry-run on causes the --gas flag to be ignored. The simulation will return the estimate of the gas required to actually run the transaction. * Adjustment is no longer required. It now defaults to 1.0. * In some test cases accounts retrieved from the state do not come with a PubKey. In such cases, a fake secp256k1 key is generated and gas consumption calculated accordingly. Closes: #2110
alessio
added a commit
that referenced
this issue
Aug 31, 2018
Add a simulate only flag '--dry-run' to both CLI tx commands and RESTful endpoints to trigger the simulation of unsigned transactions. * Turning --dry-run on causes the --gas flag to be ignored. The simulation will return the estimate of the gas required to actually run the transaction. * Adjustment is no longer required. It now defaults to 1.0. * In some test cases accounts retrieved from the state do not come with a PubKey. In such cases, a fake secp256k1 key is generated and gas consumption calculated accordingly. Closes: #2110
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Forked from #1246
Summary
Add an extra simulate flag support to both CLI tx commands and RESTful endpoints to trigger the simulation of an unsigned transaction. The command and REST endpoints should return a rough estimate of the gas consumption.
As a CLI/REST user
I want to simulate the execution of a transaction
So that I can review the estimate of the gas consumption.
Problem Definition
Proposal
Whilst CLI should support a new
--dry-run
flag, the REST clients should support asimulate
field in the request payload to disable the broadcasting of the tx.For Admin Use
The text was updated successfully, but these errors were encountered: