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 f7a5af6 commit 9ed3db9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/freegas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ 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``
* The call consumes a max of ``(default gasPrice) * gasLimit`` amount of gas
* the TX fails if the function is not ``freegas``
Expand Down

0 comments on commit 9ed3db9

Please sign in to comment.