Skip to content

Commit

Permalink
Update freegas.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
juntao committed Mar 24, 2019
1 parent 9ed3db9 commit 2c2cc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/freegas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ How Virtual Machine handles the freegas function
The blockchain could pass ``gasPrice=0`` transactions to the VM to signal that the caller has requested a ``freegas`` function call. Learn more about `free transactions <https://travis.readthedocs.io/en/latest/transactions.html#free-transactions>`_ The VM now performs the following actions.

* If ``gasLimit < 5000000``, it will just process it normally. The caller's gas fee will be 0
* If ``gasLimit > 5000000``, it will require the contract function to be ``freegas``
* If ``gasLimit >= 5000000``, it will require the contract function to be ``freegas``
* The call consumes a max of ``(default gasPrice) * gasLimit`` amount of gas
* the TX fails if the function is not ``freegas``
* the TX fails if the contract does not have enough fund to cover gas
Expand Down

0 comments on commit 2c2cc66

Please sign in to comment.