aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-03 17:27:56 +0800
committerobscuren <geffobscura@gmail.com>2015-04-03 17:27:56 +0800
commitc59c826ab45e2e999dc9a173e5bce9727754f544 (patch)
tree8da12f3abb4d40450dc3b42c7328d43088e5d752 /core
parentfd5c5b2969c74cbd7a159016f6cbddad58c0f461 (diff)
downloaddexon-c59c826ab45e2e999dc9a173e5bce9727754f544.tar.gz
dexon-c59c826ab45e2e999dc9a173e5bce9727754f544.tar.zst
dexon-c59c826ab45e2e999dc9a173e5bce9727754f544.zip
fixed stack level
Diffstat (limited to 'core')
-rw-r--r--core/vm/gas.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/vm/gas.go b/core/vm/gas.go
index f7abe63f8..33fc3a002 100644
--- a/core/vm/gas.go
+++ b/core/vm/gas.go
@@ -2,8 +2,9 @@ package vm
import (
"fmt"
- "github.com/ethereum/go-ethereum/params"
"math/big"
+
+ "github.com/ethereum/go-ethereum/params"
)
var (
@@ -37,8 +38,8 @@ func baseCheck(op OpCode, stack *stack, gas *big.Int) error {
return err
}
- if r.stackPush && len(stack.data)-r.stackPop+1 > int(params.StackLimit.Int64()) {
- return fmt.Errorf("stack limit reached (%d)", params.StackLimit.Int64())
+ if r.stackPush && len(stack.data)-r.stackPop > int(params.StackLimit.Int64()) {
+ return fmt.Errorf("stack limit reached %d (%d)", len(stack.data), params.StackLimit.Int64())
}
gas.Add(gas, r.gas)
165b2147eacd2897112'>- update to jpeg-8dinoex2010-02-051-1/+1 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-2/+1 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-31