Change --gas=simulate to --gas=auto when sending txs (#3170)

This commit is contained in:
Alessio Treglia
2018-12-20 11:21:07 -08:00
committed by Jack Zampolin
parent 217a2925dc
commit abbd2d4dd3
5 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ The `--amount` flag accepts the format `--amount=<value|coin_name>`.
::: tip Note
You may want to cap the maximum gas that can be consumed by the transaction via the `--gas` flag.
If you pass `--gas=simulate`, the gas limit will be automatically estimated.
If you pass `--gas=auto`, the gas supply will be automatically estimated before executing the transaction.
Gas estimate might be inaccurate as state changes could occur in between the end of the simulation and the actual execution of a transaction, thus an adjustment is applied on top of the original estimate in order to ensure the transaction is broadcasted successfully. The adjustment can be controlled via the `--gas-adjustment` flag, whose default value is 1.0.
:::