diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-03 00:22:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-03 00:22:33 +0800 |
commit | cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376 (patch) | |
tree | 5bb3fa719fd1388573201b8baa92b90e790f720a /vm/vm_debug.go | |
parent | 5ebae82eeb3f5ecdffb96f9d692523d0b0d4f759 (diff) | |
download | go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.gz go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.bz2 go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.lz go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.xz go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.zst go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.zip |
Updated LOG to match proper gas in all cases
Diffstat (limited to 'vm/vm_debug.go')
-rw-r--r-- | vm/vm_debug.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/vm_debug.go b/vm/vm_debug.go index ea94987d1..dbab8fbcb 100644 --- a/vm/vm_debug.go +++ b/vm/vm_debug.go @@ -165,10 +165,11 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) { n := int(op - LOG0) require(n + 2) - mSize, mStart := stack.Peekn() gas.Set(GasLog) addStepGasUsage(new(big.Int).Mul(big.NewInt(int64(n)), GasLog)) - addStepGasUsage(new(big.Int).Add(mSize, mStart)) + + mSize, _ := stack.Peekn() + addStepGasUsage(mSize) case EXP: require(2) |