AlchemyVM icon indicating copy to clipboard operation
AlchemyVM copied to clipboard

Calculate Gas

Open alexdovzhanyn opened this issue 6 years ago • 0 comments

We need a way of calculating the 'relative price' of each instruction, and accumulating the total execution cost as a given program runs. We also need an option to specify a 'gas limit', which is the maximum execution cost we're allowed to expend on a given program before we stop. If the 'gas limit' is reached (or exceeded) the vm should stop function execution immediately.

alexdovzhanyn avatar Dec 30 '18 05:12 alexdovzhanyn