aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/GasMeter.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-11-15 06:28:26 +0800
committerchriseth <c@ethdev.com>2016-11-15 06:28:26 +0800
commitbf5b0dc2d27a3c4139894daf627cf63b8cfb1864 (patch)
tree8fb035695c5034489387ee42834cb6a54048ca46 /libevmasm/GasMeter.h
parentc2c39239d6f1d51addad97c0c5128983ef58011f (diff)
downloaddexon-solidity-bf5b0dc2d27a3c4139894daf627cf63b8cfb1864.tar.gz
dexon-solidity-bf5b0dc2d27a3c4139894daf627cf63b8cfb1864.tar.zst
dexon-solidity-bf5b0dc2d27a3c4139894daf627cf63b8cfb1864.zip
Keep old code.
Diffstat (limited to 'libevmasm/GasMeter.h')
-rw-r--r--libevmasm/GasMeter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libevmasm/GasMeter.h b/libevmasm/GasMeter.h
index 1a607a9f..ff127909 100644
--- a/libevmasm/GasMeter.h
+++ b/libevmasm/GasMeter.h
@@ -102,7 +102,8 @@ public:
/// @returns an upper bound on the gas consumed by the given instruction and updates
/// the state.
- GasConsumption estimateMax(AssemblyItem const& _item);
+ /// @param _inculdeExternalCosts if true, include costs caused by other contracts in calls.
+ GasConsumption estimateMax(AssemblyItem const& _item, bool _includeExternalCosts = true);
u256 const& largestMemoryAccess() const { return m_largestMemoryAccess; }