aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-25 18:22:56 +0800
committerGitHub <noreply@github.com>2017-05-25 18:22:56 +0800
commitb596b4ba5b60c5ec047758df7c4598f21fb4dd5e (patch)
treeae621db12d87ac2a5d992c613dd714c2162a37e6
parent8b1e4c4c5eae13f7eb4dfd4b9257b64a80ca17d5 (diff)
parent846d091bd25a9b3d0f6ed9c190d42027c682a045 (diff)
downloadgo-tangerine-b596b4ba5b60c5ec047758df7c4598f21fb4dd5e.tar.gz
go-tangerine-b596b4ba5b60c5ec047758df7c4598f21fb4dd5e.tar.zst
go-tangerine-b596b4ba5b60c5ec047758df7c4598f21fb4dd5e.zip
Merge pull request #14513 from obscuren/allocate-stack
core/vm: allocate stack to 1024
-rw-r--r--core/vm/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/stack.go b/core/vm/stack.go
index f4777c5b3..9c10d50ad 100644
--- a/core/vm/stack.go
+++ b/core/vm/stack.go
@@ -29,7 +29,7 @@ type Stack struct {
}
func newstack() *Stack {
- return &Stack{}
+ return &Stack{data: make([]*big.Int, 0, 1024)}
}
func (st *Stack) Data() []*big.Int {