From 1d51cada3cd27e2de956cc7e326c6dd8455d8391 Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Mon, 18 May 2015 16:23:20 +0200 Subject: Handle call depth exception for CREATE --- core/execution.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/execution.go') diff --git a/core/execution.go b/core/execution.go index 9adf98032..522c90449 100644 --- a/core/execution.go +++ b/core/execution.go @@ -38,6 +38,12 @@ func (self *Execution) Create(caller vm.ContextRef) (ret []byte, err error, acco code := self.input self.input = nil ret, err = self.exec(nil, code, caller) + // Here we get an error if we run into maximum stack depth, + // See: https://github.com/ethereum/yellowpaper/pull/131 + // and YP definitions for CREATE instruction + if err != nil { + return nil, err, nil + } account = self.env.State().GetStateObject(*self.address) return } -- cgit