From 929e6a9d051906720337ab69a2dcf788faa88513 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 16 Jan 2018 10:33:06 +0000 Subject: [PATCH] EEI: add metering of memory --- eth_interface.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eth_interface.md b/eth_interface.md index 1c4f66d3..d71d21fe 100644 --- a/eth_interface.md +++ b/eth_interface.md @@ -19,11 +19,13 @@ We also define the following WebAssembly data types: ## useGas -Subtracts an amount to the gas counter +Reduces the gas left counter by an amount. + +It should also charge for memory cost by multiplying `memory_pages * memory_cost * amount`, where `memory_cost` is defined by the gas schedule. **Parameters** -- `amount` **i64** the amount to subtract to the gas counter +- `amount` **i64** the amount to reduce the gas left counter with **Returns**